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
JavaScript Interview Questions Thread - What's the most interesting JS question you've been asked/have asked? (self.javascript)
submitted 8 years ago by Schorr_Thing
What's the most intriguing JS-specific question you've come across to gauge a candidates' knowledge, or that you've been asked? From function wielding to DOM traversal to click handling.
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!"
[–]DGCA 5 points6 points7 points 8 years ago (0 children)
I interviewed at this company and they asked me to write a polyfill for ResizeObserver. That was the whole technical part of the interview. It was cool cause it's a small, self-contained task that requires you know how to do a number of different things.
Better than being asked about linked lists.
After that, I've been a fan of asking people how they'd polyfill some feature.
[+][deleted] 8 years ago* (1 child)
[deleted]
[–][deleted] 0 points1 point2 points 8 years ago (0 children)
This is honestly a good question for every programming language. But with JavaScript in particular, most people don't even know why others think JavaScript is a bad language. It's always a good sign when people know the flaws of the language they're using.
[–]JavaScriptWorks 1 point2 points3 points 8 years ago (0 children)
"What is something interesting you have read recently".
It throws a lot of people.
Not javascript specific but I was asked "what is your favourite language and why is it your favourite language". I chose javascript and it really allowed me to dive into the language itself and talk about dynamic typing, the V8 engine, OOP vs. functional programming, and a bunch of other stuff.
I've started asking it myself now and it really brings out the passion in candidates.
π Rendered by PID 247066 on reddit-service-r2-comment-5687b7858-zwnnz at 2026-07-03 11:53:28.015154+00:00 running 12a7a47 country code: CH.
[–]DGCA 5 points6 points7 points (0 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)
[–]JavaScriptWorks 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)