TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
- Basic Types
- Enums
- Arrays
- Functions
- Arrow Function
- Interfaces
- Classes
- Generics
Inorder to run typescript programm file we need to install typescript by using following command
npm install -g
Run following command to check the version of typescript
tsc --version
The following command is used to compile the type script file
tsc file-name.ts
Run the following command to check the result of compiled javascript file
node file-name.js