TypeScript is a language that adds static typing to JavaScript.
Why TypeScript
With types, you can find errors while you’re still writing the code.
Basic Types
typescript
const name: string = "Disnana";
const age: number = 25;
const isActive: boolean = true; Thanks to type inference, in many cases you don’t need to write types explicitly.