DEV Community

Discussion on: Is just typing the difference between Typescript and Javascript?

Collapse
 
bradtaniguchi profile image
Brad

Javascript and Typescript have similar points in some cases, but the paradigm is different.

JavaScript is multi-paradigm. Since TS builds on-top of JS, it is also multi paradigm.

In both you can use, OOP, functional, procedural, declariative etc. Both also provide essentially the same level of "functionality", however, it's the syntax of how you get there that can be different. TS will force you to write type-safe code, when JS wont care.

However, the paradigm your leveraging to write your code will be the same. The paradigm is separate from the syntax and static/non-static types.

There is also the quirk that TS is as type-safe as you want it, from very strict to JS but with a bunch of any's floating around haha.

Collapse
 
luizcalaca profile image
Luiz Calaça

Great! Brad, thanks for contribuition.