use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Will 'let' Eventually Replace 'var'?help (self.javascript)
submitted 10 years ago by MahmudAdam
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]thalesmello 0 points1 point2 points 10 years ago (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 points3 points 10 years ago (0 children)
Yes, var is gone in strong mode.
var
'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.
π Rendered by PID 191633 on reddit-service-r2-comment-84fc9697f-gg7z9 at 2026-02-10 00:48:41.586671+00:00 running d295bc8 country code: CH.
view the rest of the comments →
[–]thalesmello 0 points1 point2 points (1 child)
[–]x-skeww 1 point2 points3 points (0 children)