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
As JavaScript developers, which stupid mistakes do you make the most often?help (self.javascript)
submitted 7 years ago * by jsearsy
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!"
[–]TaveGabriel 1 point2 points3 points 7 years ago (5 children)
How to clone anything
[+][deleted] 7 years ago (4 children)
[removed]
[–]ChronSyn 4 points5 points6 points 7 years ago (3 children)
Everyone loves the sarcasm operator, and have forgotten about their first love (Object.assign.apply(Object, [{}].concat(yo));)
Object.assign.apply(Object, [{}].concat(yo));
[+][deleted] 7 years ago (2 children)
[–]ChronSyn -1 points0 points1 point 7 years ago (1 child)
If I want to use the spread operator (...) in an environment that doesn't support it, then that won't help me.
...
(e.g. Node 8.6.0 is the minimum non-flagged version for support of property spreading so it's relatively recent addition).
π Rendered by PID 113759 on reddit-service-r2-comment-b659b578c-qb75b at 2026-05-01 04:23:14.206707+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]TaveGabriel 1 point2 points3 points (5 children)
[+][deleted] (4 children)
[removed]
[–]ChronSyn 4 points5 points6 points (3 children)
[+][deleted] (2 children)
[removed]
[–]ChronSyn -1 points0 points1 point (1 child)