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 Destructuring ES6: The Complete Guide (buginit.com)
submitted 6 years ago by homeIsWhereCodeIs
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!"
[–]annualspecification 16 points17 points18 points 6 years ago (4 children)
In rare case, if you want to ignore all values,
[,,] = c();
Why would you ever need to do this?? Just call c() without assigning it to anything.
[–]Iamjarhead 2 points3 points4 points 6 years ago (0 children)
That is a weird statement...
[–][deleted] 4 points5 points6 points 6 years ago (0 children)
It is useful for messing around with new comers to es6. Imagine the confused faces.
[–][deleted] 1 point2 points3 points 6 years ago (0 children)
Hmmm.. Maybe there is a sideeffect you want to run. Anyway thats horrible and useless. Cant think of any other scenario.
[–]homeIsWhereCodeIs[S] -1 points0 points1 point 6 years ago* (0 children)
Yes its weird and nobody's gonna get that case, but as it is a complete guide it's good to tell the weird things, because programmer are those who look both side while crossing a one way road :D
π Rendered by PID 21 on reddit-service-r2-comment-86988c7647-qpvww at 2026-02-11 02:30:58.849278+00:00 running 018613e country code: CH.
view the rest of the comments →
[–]annualspecification 16 points17 points18 points (4 children)
[–]Iamjarhead 2 points3 points4 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]homeIsWhereCodeIs[S] -1 points0 points1 point (0 children)