TypeScript is an open source language and is a superset of JS.

Dynamic vs Static typing

⇒ TypeScript is a static typed language.

In dynamically typed languages all type checks are performed in a runtime, only when your program is executing. So this means you can just assign anything you want to the variable and it will work.

If we take a look at Typescript, it is a statically typed language, so all checks will be performed during compile/build run before we actually execute our program.

Pros and Cons

Pros