What is typescript?
Typescript = Javascript + Type system
TypeScript vs JavaScript:
Advantage of TypeScript over JavaScript
- TypeScript always highlights errors at compilation time during the time of development, whereas JavaScript points out errors at the runtime.
- TypeScript supports strongly typed or static typing, whereas this is not in JavaScript.
- TypeScript runs on any browser or JavaScript engine.
- Great tooling supports with IntelliSense, which provides active hints as the code is added.
- It has a namespace concept by defining a module.
Disadvantage of TypeScript over JavaScript
- TypeScript takes a long time to compile the code.
- TypeScript does not support abstract classes.
- If we run the TypeScript application in the browser, a compilation step is required to transform TypeScript into JavaScript.
0 Comments:
張貼留言