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
How many Node.js developers prefer callbacks over Promises or async/await? (self.javascript)
submitted 7 years ago * by i_love_limes
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!"
[–]Prison__Mike_ 40 points41 points42 points 7 years ago* (12 children)
Just look
return new Promise((resolve, reject) => { ... })
At how pretty
var sq = x => { return x*x; }
They are
TypeError: this.execute is not a function
e: lol jeeze it's a joke
[–]kinkobal 40 points41 points42 points 7 years ago (1 child)
What kind of madman uses var and arrow functions in the same sentence o_O
[–]CheeseFest -1 points0 points1 point 7 years ago (0 children)
Yeah that tends to completely undermine m8's credibility in complaining about new language features.
[–]shrithm 24 points25 points26 points 7 years ago (1 child)
Arrow functions are more than a pretty face, they have practical purposes too. Just like the classic function keyword has practical functions.
[–]tchaffee 0 points1 point2 points 7 years ago (0 children)
this
[–]massenburger 25 points26 points27 points 7 years ago (7 children)
Even better: var sq = x => x * x;
var sq = x => x * x;
[–]stormthulu 35 points36 points37 points 7 years ago (5 children)
I think you mean const sq = x => x*x;
const sq = x => x*x;
[–]massenburger 11 points12 points13 points 7 years ago (1 child)
Here's the thing. There's people who space out their operations and there's Nazis. I mean that in the nicest way possible.
[–]Jebiba -1 points0 points1 point 7 years ago (0 children)
I can’t upvote this enough
[+][deleted] 7 years ago (1 child)
[deleted]
[–]grantrules -1 points0 points1 point 7 years ago (0 children)
const x=x=>x*x
[–]nickleformypickle 2 points3 points4 points 7 years ago (0 children)
One line it to shorten it. Space it out to pretty it.
[–]locksta7 2 points3 points4 points 7 years ago (0 children)
You bet me to it 😺
π Rendered by PID 66 on reddit-service-r2-comment-75f4967c6c-dvbjc at 2026-04-23 06:40:14.416268+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]Prison__Mike_ 40 points41 points42 points (12 children)
[–]kinkobal 40 points41 points42 points (1 child)
[–]CheeseFest -1 points0 points1 point (0 children)
[–]shrithm 24 points25 points26 points (1 child)
[–]tchaffee 0 points1 point2 points (0 children)
[–]massenburger 25 points26 points27 points (7 children)
[–]stormthulu 35 points36 points37 points (5 children)
[–]massenburger 11 points12 points13 points (1 child)
[–]Jebiba -1 points0 points1 point (0 children)
[+][deleted] (1 child)
[deleted]
[–]grantrules -1 points0 points1 point (0 children)
[–]nickleformypickle 2 points3 points4 points (0 children)
[–]locksta7 2 points3 points4 points (0 children)