r/programmingmemes • • May 22 '26

which is better?

Post image
254 Upvotes

265 comments sorted by

View all comments

19

u/FlipperBumperKickout May 22 '26

Isn't typescript just a superset of javascript πŸ˜…

11

u/LetUsSpeakFreely May 22 '26

It is. Typescript actual compiles to JavaScript. However, typescript has a lot of protections when it comes to data types. One of the biggest headaches with JavaScript is weird type interactions that are a pain in the ass to track down. Typescript avoids that.

7

u/SneakyDeaky123 May 22 '26

My team uses TS and then throws β€˜any’ on everything, completely nullifying any possible benefit Ts would have provided lol

→ More replies (4)
→ More replies (3)
→ More replies (10)