JavaScript is Dynamically typed means type of a variable can dynamically change at runtime. This might cause bug at higher level application so we use TypeScript for type Safety.

let Rank = "first"; // type:= string
Rank = 3 // type:= number
Rank = true // type:= bool