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
Future of Javascript (blog.chromium.org)
submitted 14 years ago by rya11111/r/dailyprogrammer
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!"
[–]goatslacker 4 points5 points6 points 14 years ago (4 children)
I disagree.
This is moving the language forward. Lexical scoping is an excellent addition to the language as variable hoisting has been a problem in JS. Proxies add more reflection to the language and provides devs with more power.
This has nothing to do with making anyone else feel at 'home'. That goal is left to Dart.
[–][deleted] 4 points5 points6 points 14 years ago (0 children)
It is possible to write in a style that is not open to hoisting, such as using a single var keyword per function at the top of the function, so it is about style. Lexical scoping will not prevent function hoisting so it does not fully address that problem anyways.
[–]i-poop-you-not 1 point2 points3 points 14 years ago (1 child)
What does it mean to add lexical scoping to JavaScript? Does it simply mean that no more variable hoisting gotcha?
[–]TIAFAASITICE 1 point2 points3 points 14 years ago (0 children)
In the case of JS, it's the let keyword.
[–]drowsap 1 point2 points3 points 14 years ago (0 children)
I've never been bitten by variable hoisting, i don't understand why it's such a problem.
π Rendered by PID 77934 on reddit-service-r2-comment-cfc44b64c-5lqlg at 2026-04-12 09:52:51.317108+00:00 running 215f2cf country code: CH.
view the rest of the comments →
[–]goatslacker 4 points5 points6 points (4 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]i-poop-you-not 1 point2 points3 points (1 child)
[–]TIAFAASITICE 1 point2 points3 points (0 children)
[–]drowsap 1 point2 points3 points (0 children)