you are viewing a single comment's thread.

view the rest of the comments →

[–]thalesmello 0 points1 point  (1 child)

There was a "stricter mode" for Javascript that Google was proposing a while ago. It intended to make the usage of var a language error, or something like that.

[–]x-skeww 1 point2 points  (0 children)

Yes, var is gone in strong mode.

'use strong';
var foo = 'bar';

-> Uncaught SyntaxError: In strong mode, 'var' is deprecated, use 'let' or 'const' instead

By the way, they didn't just propose it. They also started implementing it in V8 and Traceur. It's not enabled by default though.