https://albseb511.github.io/notes/ts/intro/#/

https://masai-course.s3.ap-south-1.amazonaws.com/lecture/5385/material/03227b950778ab86436ff79fe975b596/TS-intro.mov

Typescript

Why

What is Typescript

TypeScript is a language that is a superset of JavaScript: JS syntax is therefore legal TS. Syntax refers to the way we write text to form a program.

console.log(4 / []);
// error in ^ typescript
// not an error in js

TypeScript stands in an unusual relationship to JavaScript. TypeScript offers all of JavaScript’s features, and an additional layer on top of these: TypeScript’s type system.