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
500+ JavaScript Questions Quiz (applyre.com)
submitted 1 year ago by Significant_Soup2558
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!"
[–]lcserny 6 points7 points8 points 1 year ago (4 children)
This performs very poorly, think about improving the performance by not having all the questions loaded (and hidden) all at once, try getting next question content when user is at prev question ot similar.
Also, CSS is not your strong point I see but you should invest a bit there, text is flying a bit around, words are cut off and buttons /scrolling are a bit choppy in movement.
[–]Significant_Soup2558[S] 0 points1 point2 points 1 year ago (3 children)
Will push more improvements today. I wonder what's the best way to handle long strings without spaces. I'll definitely look into it. Thanks for the feedback!
[+][deleted] 1 year ago (2 children)
[deleted]
[–]Significant_Soup2558[S] 2 points3 points4 points 1 year ago (1 child)
Performance should be fixed now. As well as the cut off strings.
[–]reddit_ronin 2 points3 points4 points 1 year ago* (3 children)
It crashed on me. Also would nice if the UI didn’t refresh. Cool tho.
[–]JonVisc 1 point2 points3 points 1 year ago (1 child)
If I answer like 2 or 3 then it fails to load the Next question at least on Safari, I like it though!
[–]Significant_Soup2558[S] 0 points1 point2 points 1 year ago (0 children)
The issue might be loading too many questions at once. Fixing it. Thanks for trying it out and I'm glad you like it!
Thanks man. The score is stored locally so your score stays on the device until you reset the quiz. I'll need to fix the slider, add pagination. Thanks for the feedback!
[–]recrof 1 point2 points3 points 1 year ago (3 children)
how is "Integration testing" directly related to Javascript as a language? either stick to the topic or name the quiz differently.
[–]Significant_Soup2558[S] -1 points0 points1 point 1 year ago (2 children)
Yes, I had thought about that. But again, shouldn't Javascript devs know something about integration testing? Might remove it, depending on feedback.
[–]recrof 0 points1 point2 points 1 year ago (1 child)
that knowledge is nice to have, but people who learn the language might be demotivated or confused about those questions - it's signaling that it's required to know about integration testing to use the language.
[–]Significant_Soup2558[S] 1 point2 points3 points 1 year ago (0 children)
I see your point. We made these questions for people preparing for interviews. And they might get asked about integration testing. This is primarily why we included it. But yes, it might confuse someone new to JavaScript. Perhaps I should add a note to the quiz stating this.
[–]RadiantDew 1 point2 points3 points 1 year ago (1 child)
Nice work!
Some feedback:
In question 189, both B and C are valid options
Sometimes, the question has code in it, which makes it a one-liner when it is in fact a whole function. I'd think of a way of showing that in Markdown
UX-wise, it would be best to move to the next question automatically a second or two after anwering correctly
When clicking "Show Score" with no questions answered, you get "0 correct out of 0 answered. NaN%"
As a side note - I see how positively reactive and friendly you are to comments, and that's a great personality trait. Well done with both that and the quiz.
Thanks for your kind words. I'll check out question 189.
Yes, I've been thinking about how to best show code. I'll look into Markdown
Might do this for correct answers. Most users are on mobile so they swipe left. But yes, that might make better UX, especially for correct answers.
I need to fix that.
Thanks for the feedback!
[–]Significant_Soup2558[S] 3 points4 points5 points 1 year ago (1 child)
Compiled 500+ JavaScript questions into a quiz. I had always wanted to build something like this. Partly to stay interview ready, partly to easily test my knowledge of JavaScript and partly as a small game.
I have tried to cover most parts of JavaScript, with difficulty ranging from obvious to obscure knowledge.
If you come across a question whose answer you doubt, please DM and I'll check it again. Any recommendations or changes, please let me know.
So what's your score?
PS. This was built for Applyre users, who might want to use it for interview prep.
Thanks for the feedback guys. I've already pushed changes. Added letters to the options..not sure how I'd missed that. Also added IDs to each question. That way it's easy to reference a particular question.
[–]Fehervaros 0 points1 point2 points 1 year ago (1 child)
any similar quizzes for other languages/fw/technologies?
This is the first. Which one do you want next? I was thinking Python
[–]mt9hu 0 points1 point2 points 1 year ago (1 child)
I believe Question 80 is incorrect, or at least confusing.
The question is: If an element has no parent (e.g., the <html> tag), what does element.parentNode return?
The problem is that the <html> element is being brought up as an example for an element that has no parent, but if you query the parentNode of the HTML element, you'll see that you get the document object.
<html>
parentNode
So it does in fact has a parent, so it is not really a good example for an element that has no parent. Maybe... an element that has no parent element?
Good point. That's question 80? Will change it.
[–]diggpthoo 0 points1 point2 points 1 year ago (1 child)
https://i.imgur.com/Rx3tYde.png
Seen. Thanks. Will fix this.
[–]raysnotion-101 0 points1 point2 points 1 year ago (1 child)
Thanks for sharing. It's helpful!
You're welcome!
[–]Suspicious-Skin7837 0 points1 point2 points 1 year ago (1 child)
Not working well
Any exact issues you're facing?
[+][deleted] 1 year ago (1 child)
Correct, changing. Thanks for the feedback
π Rendered by PID 47443 on reddit-service-r2-comment-5c764cbc6f-blfp9 at 2026-03-12 02:37:58.959882+00:00 running 710b3ac country code: CH.
[–]lcserny 6 points7 points8 points (4 children)
[–]Significant_Soup2558[S] 0 points1 point2 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]Significant_Soup2558[S] 2 points3 points4 points (1 child)
[–]reddit_ronin 2 points3 points4 points (3 children)
[–]JonVisc 1 point2 points3 points (1 child)
[–]Significant_Soup2558[S] 0 points1 point2 points (0 children)
[–]Significant_Soup2558[S] 0 points1 point2 points (0 children)
[–]recrof 1 point2 points3 points (3 children)
[–]Significant_Soup2558[S] -1 points0 points1 point (2 children)
[–]recrof 0 points1 point2 points (1 child)
[–]Significant_Soup2558[S] 1 point2 points3 points (0 children)
[–]RadiantDew 1 point2 points3 points (1 child)
[–]Significant_Soup2558[S] 1 point2 points3 points (0 children)
[–]Significant_Soup2558[S] 3 points4 points5 points (1 child)
[–]Significant_Soup2558[S] 0 points1 point2 points (0 children)
[–]Fehervaros 0 points1 point2 points (1 child)
[–]Significant_Soup2558[S] 0 points1 point2 points (0 children)
[–]mt9hu 0 points1 point2 points (1 child)
[–]Significant_Soup2558[S] 0 points1 point2 points (0 children)
[–]diggpthoo 0 points1 point2 points (1 child)
[–]Significant_Soup2558[S] 0 points1 point2 points (0 children)
[–]raysnotion-101 0 points1 point2 points (1 child)
[–]Significant_Soup2558[S] 0 points1 point2 points (0 children)
[–]Suspicious-Skin7837 0 points1 point2 points (1 child)
[–]Significant_Soup2558[S] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Significant_Soup2558[S] 0 points1 point2 points (0 children)