TypeScript is a typed superset of JavaScript that compiles to clean, readable JavaScript — adding strong typing and powerful tooling.
Install TypeScript globally via npm:
npm install -g typescript
tsc --version
.ts extension. Use tsc filename.ts to compile to JavaScript, and run with node filename.js.