TypeScript is a programming language crated at Microsoft to adress some shortcomings of JavaScript. TypeScript is JavaScript with Type Checking.
Freature:
- Type checking.
- Code Compiletion.
- Refactoring.
- Shorthand Notations.
- Familiar OOP.
DrawBack:
- Compiltaion: Browser don't understand TypeScript.
Installation: npm i -g typescript
What is wrong with JS?
- Not suitable for large application.
- Lacks strong typing.
- Weird inheritance, unfamiliar syntax.
- Only errors during runtime.
- Suffers type coecion.