DEV Community

loading...

Discussion on: Getting started with TypeScript as a JavaScript developer

Collapse
jonrandy profile image
Jon Randy

We can't multiply a string!

Well, actually, we can:

> "34" * 4
136
Enter fullscreen mode Exit fullscreen mode

TypeScript just feels like a crutch for devs coming from strongly typed languages who don't want to embrace doing things in a different way, and take advantage of all the stuff a weakly typed language provides.

I see JavaScript's weakly typed nature as a pro, not a con. There's lots of nice stuff you can do by taking advantage of implicit coercions. TypeScript bogs you down in formality and restricts creativity. It makes JS worse, not better. Not to mention all the tooling overhead. Waste of time

Collapse
sam_piggott profile image
Sam Piggott Author

Ah, interesting! I'll add that multiplication tip into the article. Thanks so much for pointing it out!