Welcome TypeScript
What is TypeScript
- TypeScript is the superset of JavaScript created by Microsoft
- Allows static strict typing
- Extra features - interfaces, enums, tuples, generics
- Supports modern features (arrow functions, let, const)
- Based on the .NET harmony specification
What’s wrong with JavaScript
- Not suitable for large applications
- Lacks string typing
- Weird inheritance, unfamiliar syntax
- Only errors during runtime
- Suffers type coercion
Benefits of TypeScript
- TypeScript = JavaScript
- Compiles to JavaScript - runs everywhere
- Familiar OOP Programming
- New Features work everywhere
Installing TypeScript
- Install Node.js in your machine
- Install TypeScript compiler