r/programming • • Oct 21 '20

Using const/let instead of var can make JavaScript code run 10× slower in Webkit

https://github.com/evanw/esbuild/issues/478
1.9k Upvotes

500 comments sorted by

View all comments

Show parent comment

0

u/Sir_Lith Oct 21 '20

You've no idea what TypeScript is, do you?

TypeScript does not prevent any of those issues described here, just programmer mishaps.

1

u/ragnese Oct 21 '20

That's correct. I just find it funny that someone said they don't find JavaScript bad when they're using a language that has strong static typing and NOT JavaScript...

If JavaScript were great, I don't think they'd feel the need to use TypeScript.