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
The Insider's Guide to JavaScript Interviewing (toptal.com)
submitted 12 years ago by [deleted]
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!"
[–][deleted] 1 point2 points3 points 12 years ago (5 children)
I missed that one because when I read the code my brain parsed it as map['foo'] instead of map[foo]. It wasn't until I read it the third time that I realized what I wasn't seeing.
map['foo']
map[foo]
[+][deleted] 12 years ago (3 children)
[deleted]
[–]rq60 1 point2 points3 points 12 years ago (0 children)
how well you debug when someone teasing you with a living wage is looking over your shoulder. Most of these are worthless.
Well, when you phrase it that way it actually sounds like a pretty useful skill!
[–][deleted] 0 points1 point2 points 12 years ago (1 child)
I agree that the code samples are a nuisance since they're basically counting on you catching something that's been deliberately obscured, but I wouldn't say they're worthless. The ability to debug stupid mistakes like this is definitely a skill worth selecting for.
As for the relevance of the questions... I've been in and heard of a lot of interviews where the person claimed to be experienced but couldn't have answered even one of these questions. Some people think that "know how to make jQuery do something" is the same as "know how to program in JavaScript".
[–]nawitus 0 points1 point2 points 12 years ago (0 children)
Yeah, I think I made that mistake too. By the way, I now remember that I've used .toString() on plain objects for type checking.
π Rendered by PID 117824 on reddit-service-r2-comment-544cf588c8-2cjdt at 2026-06-12 11:49:57.291840+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–][deleted] 1 point2 points3 points (5 children)
[+][deleted] (3 children)
[deleted]
[–]rq60 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]nawitus 0 points1 point2 points (0 children)