DEV Community

Discussion on: Why Should We Use TypeScript

Collapse
 
sanderdebr profile image
sanderdebr

How is TypeScript code more readable than plain JS? I think it makes your code more bloated and puts less focus on the actual logic, more on just type checking. However I've not done so much in TypeScrip yet!

Collapse
 
hakimio profile image
Tomas Rimkus • Edited

It helps you structure your code better by giving you better tools. OOP, SOLID, many language features vanilla JS is missing like decorators, optional chaining, nullish coalescing and many other features. IntelliSense/auto-completion makes you more productive and helps you avoid typos.

Collapse
 
jonrandy profile image
Jon Randy 🎖️

Optional chaining and nullish coalescing are built into JS

Thread Thread
 
hakimio profile image
Tomas Rimkus

...but not supported by all browsers.

Thread Thread
 
patarapolw profile image
Pacharapol Withayasakpunt