Hacker News new | ask | show | jobs
by arp242 1244 days ago
s/var/let/g and you're good. This is the entire reason "let" was added in the first place, to correct this historical mistake. It's supported pretty much everywhere even by extremely conservative standards, and it's even the same number of letters. Literally no reason not to use it.

I personally dislike JavaScript. Even modern JavaScript. But this is a bullshit reason to hate on JavaScript.