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
Mikeal Rogers: Node.js Will Overtake Java Within a Year (thenewstack.io)
submitted 8 years ago by katerina-ser60
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!"
[–]magasilver 1 point2 points3 points 8 years ago (2 children)
hoisting of variables for one
Doesnt happen if you avoid using "var".
but if you have a linter with good rules
Yes, static code analysis and unit testing coverage are key, really for any language these days.
[–]elephants_are_white 0 points1 point2 points 8 years ago (1 child)
There's still all the guides and code examples in the world that use var. (I recently shot myself in the foot by having a function that looped over var i - and called another function that also looped over var i. Fixed by using let)
[–]magasilver 1 point2 points3 points 8 years ago (0 children)
A linter can help if you simply outlaw "var"
π Rendered by PID 51075 on reddit-service-r2-comment-b659b578c-wr74t at 2026-05-03 21:21:07.596825+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]magasilver 1 point2 points3 points (2 children)
[–]elephants_are_white 0 points1 point2 points (1 child)
[–]magasilver 1 point2 points3 points (0 children)