DEV Community

loading...

Discussion on: You should probably learn TypeScript

Collapse
thexdev profile image
M. Akbar Nugroho • Edited

The main reason I used TypeScript for my current projects is because TypeScript supports static typing.

No doubt, I have written JavaScript for 2+ years and the main problem I faced is "what data type of this variable/constant/etc".

Yeah, you can comment your code, but write a lot of comment for knowing a data type of a variable is not effective.