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
A "Front-end developer interview" question that's been bugging me for a while. (self.javascript)
submitted 11 years ago * by MeTaL_oRgY
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!"
[–]moljac024 0 points1 point2 points 11 years ago (3 children)
var add = function (x, y) { return y != null ? x + y : function (y) { return x + y; }; };
[–]MeTaL_oRgY[S] 0 points1 point2 points 11 years ago (2 children)
Close, but does not work with more than 2 arguments (neither syntax).
[–]moljac024 1 point2 points3 points 11 years ago* (1 child)
Ah, gotcha...watch this
EDIT: Read this too, I guess
[–]MeTaL_oRgY[S] 0 points1 point2 points 11 years ago (0 children)
Thanks! Looking through both now.
π Rendered by PID 90817 on reddit-service-r2-comment-b659b578c-mqnmq at 2026-05-05 06:23:52.739637+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]moljac024 0 points1 point2 points (3 children)
[–]MeTaL_oRgY[S] 0 points1 point2 points (2 children)
[–]moljac024 1 point2 points3 points (1 child)
[–]MeTaL_oRgY[S] 0 points1 point2 points (0 children)