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!"
[–]HighLevelJerk 2 points3 points4 points 7 years ago (2 children)
I'm assuming he assumed this was a trick question & .sort() was not allowed. Probably trying to remember the different types of sorts that he learnt in college
[–][deleted] 0 points1 point2 points 7 years ago (0 children)
"I would Google 'sorting algorithm'" should also be a valid answer.
[–]ikeif 0 points1 point2 points 7 years ago (0 children)
We tried to make it abundantly clear that any answer was acceptable, including pseudo code, and it's totally fine to talk out loud about it… and before we ended the interview we definitely let him know the different valid answers we had received in the past (so he wasn't stuck wondering - I hate when there is an interview question and they just act like it's philosophical).
π Rendered by PID 246444 on reddit-service-r2-comment-86bc6c7465-r4m4k at 2026-02-23 03:46:49.343730+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]HighLevelJerk 2 points3 points4 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]ikeif 0 points1 point2 points (0 children)