const name: string = "Slavo_3";
const isBlog: boolean = true;
- TypeScript is going to be constantly analyzing our code and looking for bugs. If it finds any possible bug, it will pop an open error message inside your code editor.
FYI - The TypeScript compiler does not do any performance optimization.
- TypeScript Compiler is using "TYPE ANNOTATIONS" to analyze our codebase. A developer is responsible for adding these "type annotations .". Imagine these "type annotations " as being like comments to describe your code's purpose or the information flowing through our program.
( Learn JavaScrtipt First to understand TypeScript )
- A developer using TypeScript is impressive because it gives you extra error checking where errors you would otherwise get as runtime can be caught and fixed early during development.
- Whit types, we need to be way more explicit about how things work, and we can avoid many unexpected errors