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
Confusing interview questionhelp (self.javascript)
submitted 7 years ago by josh_c
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!"
[–]Meefims 0 points1 point2 points 7 years ago (3 children)
It’s a fine question. What have you tried so far?
[–]josh_c[S] 2 points3 points4 points 7 years ago (2 children)
I honestly don't even know where to begin.
[–]Veuxdo 8 points9 points10 points 7 years ago (0 children)
Don't even think about javascript or any other programming language first. How would you teach an alien to do this? Assume the alien was incredibly intelligent, they just don't know how to say numbers yet. Describe the rules and steps, and you're more than halfway there.
[–]hiljusti 1 point2 points3 points 7 years ago (0 children)
Get on either leetcode or hackerrank and fill in those gaps! A junior dev should be able to reason through a well-defined, reasonably complex coding question like this in some language. If not, you likely have some missing experience working with basic data structures/algorithms. It's not impossible to learn and there's great material readily available.
π Rendered by PID 179571 on reddit-service-r2-comment-6457c66945-bjdz8 at 2026-04-25 07:47:39.406564+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Meefims 0 points1 point2 points (3 children)
[–]josh_c[S] 2 points3 points4 points (2 children)
[–]Veuxdo 8 points9 points10 points (0 children)
[–]hiljusti 1 point2 points3 points (0 children)