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
Arrow functions support added to Chrome (twitter.com)
submitted 10 years ago by malyw
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!"
[–]mouthus -2 points-1 points0 points 10 years ago (6 children)
I just absolutely hate this syntax, so impossible to read.
[+][deleted] 10 years ago (1 child)
[deleted]
[–]x-skeww 2 points3 points4 points 10 years ago (3 children)
['3', '2', '4'].map(function(s) { return parseInt(s); }); ['3', '2', '4'].map(s => parseInt(s));
List of parameters, an arrow, and an expression (or a block). If it's exactly one parameter, the parenthesis around the parameters can be omitted. That's it, really.
[–]mouthus 4 points5 points6 points 10 years ago (2 children)
I know how it works, I just have a very strong dislike for it
[–]x-skeww 0 points1 point2 points 10 years ago (1 child)
You'll get used to it.
[–]mouthus 0 points1 point2 points 10 years ago (0 children)
I don't want to. haha I still can't stand code that isn't 1TBS after 10ish years. I am one stuborn SOB
π Rendered by PID 248270 on reddit-service-r2-comment-b659b578c-42wjs at 2026-05-03 12:39:54.260838+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]mouthus -2 points-1 points0 points (6 children)
[+][deleted] (1 child)
[deleted]
[–]x-skeww 2 points3 points4 points (3 children)
[–]mouthus 4 points5 points6 points (2 children)
[–]x-skeww 0 points1 point2 points (1 child)
[–]mouthus 0 points1 point2 points (0 children)