DEV Community

Bret
Bret

Posted on

Should I learn typescript?

Should I learn typescript?
I’ve heard that it adds build/run time and also data...

Is it worth it?

Top comments (2)

Collapse
 
nikfp profile image
Nik F P

I'd recommend you give this article a read, including all the comments. Should help you make a decision.

It will add build time when you run your build command. In the beginning, writing code will be slower, however in my experience the projects you write will move faster overall. There is zero runtime overhead vs javascript because typescript compiles to regular javascript before runtime.

In my view, it's worth it as long as you have Javascript fundamentals down.

Collapse
 
sandrocagara profile image
Sandro Jhuliano Cagara

YES