DEV Community

Discussion on: JS / TS?

Collapse
 
lexlohr profile image
Alex Lohr

TypeScript is just JavaScript with some extensions from upcoming standards and a transpile-time type checker. The aforementioned extensions (which you can also get by using babel instead) will make some things a lot easier. The type checker will require some work to declare the types, which will usually be repayed once it catches bugs and helps with better IDE integration - however, for smaller projects, it's probably not worth it.

So, as a rule of thumb, with more than 2 front end developers and more than ~1000 lines of code, choose TypeScript, otherwise go for JavaScript. YMMV.

Collapse
 
swagwik profile image
Sattwik Sahu

Thanks @alex Lohr
That was really helpful 😃