0

What is difference between JavaScript and Typescript ?

I want to know how Typescript differentiate with JavaScript.

13th Sep 2020, 7:55 PM
J P Senthil Kumar
J P Senthil Kumar - avatar
1 Odpowiedź
+ 8
Typescript is a JavaScript superset, all JavaScript code works on typescript. The main difference is that typescript allow you to use types like boolean, number, string, etc (you can also create your own types). Typescript also provide a clean way to write OOP. Check out my last typescript code: https://code.sololearn.com/WiY4I32GeFvA/?ref=app
13th Sep 2020, 8:07 PM
CoffeeByte
CoffeeByte - avatar