DEV Community

Cover image for Should I learn Typescript?
Pranjal Verma
Pranjal Verma

Posted on

Should I learn Typescript?

Hi guys, again I have some confusion and all sum up is that:

Should I learn typescript for development or invest my time learning JS Libraries?

Top comments (4)

Collapse
 
somedood profile image
Basti Ortiz

From my experience, you don't really learn TypeScript; you grow with it. As you continue to master the fundamentals of JavaScript, you will eventually have a natural tendency to annotate your code with types (for the sake of compile-time safety). At the end of the day, that's just what TypeScript is: a bunch of type annotations for JavaScript.

You don't really "learn" TypeScript; you learn how to statically type-check your JavaScript code.

Case in point, I wouldn't regard TypeScript as an entirely different language to JavaScript. That's why your question is a false dichotomy. You can "learn" TypeScript while using JavaScript libraries. They're just two sides of the same coin, to be honest.

TL;DR: You can definitely learn both at the same time! 😁

Collapse
 
pvcodes profile image
Pranjal Verma

Thanks for you advice ;)

Collapse
 
ielgohary profile image
Islam Elgohary

here is an article that I wrote about my experience learning Typescript

the transition can be as fast as you want it.

Collapse
 
pvcodes profile image
Pranjal Verma

Yep..!! I will check it out