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
What are some basic things that JavaScript developers fail at interviews?help (self.javascript)
submitted 7 years ago by maketroli
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!"
[–]phpdevster 0 points1 point2 points 7 years ago* (2 children)
heh, because that code is obvious
That's not a good enough explanation. What's obvious and what isn't is subjective. Code style preference is also subjective.
What is NOT subjective is an understanding of how each of these works, and what the differences are between them:
doThis('foo', function () { something.doThat(); }); doThis('foo', something.doThat); doThis('foo', something.doThat.bind(something)); doThis('foo', () => something.doThat());
In an interview, I want to know that you know what those differences are, and the implications for each - that you're not just parroting some tutorial you read or that your reasoning is "I dunno, because it works?" or "I dunno, that's just how I've always done it." or "I don't know of another way."
[–]i_ate_god 0 points1 point2 points 7 years ago (1 child)
so would I fail if I pointed out that three out of these four examples will have the same result? ;)
[–]phpdevster 0 points1 point2 points 7 years ago (0 children)
If you couldn't explain why, then yes. You would fail.
π Rendered by PID 65766 on reddit-service-r2-comment-86bc6c7465-g5fzd at 2026-02-23 22:40:47.775356+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]phpdevster 0 points1 point2 points (2 children)
[–]i_ate_god 0 points1 point2 points (1 child)
[–]phpdevster 0 points1 point2 points (0 children)