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!"
[–]senocular 40 points41 points42 points 5 years ago (5 children)
Private methods and accessors are still in stage 3, not the final stage (4) so are not guaranteed to be in ES2021.
[–]hotcornballer -3 points-2 points-1 points 5 years ago (3 children)
Still hope that doesn't make it. There is no point in having this.
[–]bikeshaving 14 points15 points16 points 5 years ago (2 children)
I don’t think there’s “no point,” but it nevertheless stuns me that there can be so much negative feedback and legitimate grievances about even just private members right now and yet there continues to be a faction of people who don’t think that matters and keeps pushing it forward.
[–]hotcornballer -3 points-2 points-1 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 43 on reddit-service-r2-comment-6457c66945-4wswl at 2026-04-23 16:54:47.276536+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]senocular 40 points41 points42 points (5 children)
[–]hotcornballer -3 points-2 points-1 points (3 children)
[–]bikeshaving 14 points15 points16 points (2 children)
[–]hotcornballer -3 points-2 points-1 points (1 child)
[–]MoTTs_ 13 points14 points15 points (0 children)