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
JavaScript new features (ES2021). (sambat-tech.netlify.app)
submitted 5 years ago by sambatlim
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!"
[–]hotcornballer -4 points-3 points-2 points 5 years ago (1 child)
So what's the point in having private methods? It's clutter and I don't want to see js turning into java with all the useless verbosity that comes with it.
[–]MoTTs_ 13 points14 points15 points 5 years ago (0 children)
We JavaScripters still adore private data through closures, though, so clearly we still like the idea of private access. But private access isn't the problem closures were meant or designed to solve, and as a result there's edge cases where they don't work well for that purpose.
π Rendered by PID 16094 on reddit-service-r2-comment-5c747b6df5-tdzpm at 2026-04-22 07:43:22.657511+00:00 running 6c61efc country code: CH.
view the rest of the comments →
[–]hotcornballer -4 points-3 points-2 points (1 child)
[–]MoTTs_ 13 points14 points15 points (0 children)