DEV Community

Discussion on: Do you prefer TypeScript over vanilla JS?

Collapse
 
themartes_ profile image
Matej Bunček 🤔 • Edited

As you say " I could surely see the additional features being useful in more complex code bases.". JS is unmaintainable on larger projects. That's why I/we are using TS in work because it's easier to understand. When you hop on the project, and everything is typed, under interfaces and so on, it's really easy to understand the codebase. However, I can't say this about JS. You have to figure out what's going, what sometimes takes a while. I'm using also JS on personal projects, but for the projects, I'm planning to maintain and return to I'm using always TS.