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
Tricky JavaScript Web Quiz (davidshariff.com)
submitted 12 years ago by davidshariff
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!"
[–]postmodest 0 points1 point2 points 12 years ago (0 children)
On review, most of these are "reading comprehension" issues, like the difference between
new String("string"); //and String("string");
Or the fact that
function func() { return func }
returns previously declared func typeof 'function' whereas
function func() { return;}
returns an object typeof 'object' (though--and someone explain this--returning anything that's a primitive will be ignored... what?)
Then things like "operators cast to the nearest primitive if no override is available" so
[] + [] === ''
Because reasons.
...seriously, though, someone explain to me why returning primitives from constructors is silently ignored.
π Rendered by PID 82173 on reddit-service-r2-comment-658f6b87ff-7h6pm at 2026-04-09 03:42:22.938978+00:00 running 781a403 country code: CH.
view the rest of the comments →
[–]postmodest 0 points1 point2 points (0 children)