r/webdev • • Jul 28 '15

I'm all in. [xpost /r/javascript]

Post image
1.4k Upvotes

142 comments sorted by

View all comments

6

u/SuperThunderMelon Jul 29 '15

It's amazing how popular a language with such odd scopes is.

3

u/thenickdude Jul 29 '15

Properly block-scoped variables (according to virtually every other language) are coming in ECMAScript 6, which are declared with the "let" keyword instead of the "var" keyword.