Hysen Labs
Open-source project
lydiahallie/javascript-questions avatar
lydiahallie

javascript-questions

A long list of (advanced) JavaScript questions, and their explanations :sparkles:

65,319 stars9,200 forksUnknownMIT
01
DEEP OPEN-SOURCE ANALYSIS

javascript-questions: interview prep as a question list

Trying to measure how well you know JavaScript? This repository is a long list of questions with answers tucked into collapsed sections, started in 2019 and updated since, with 20 translations available.

02
DEEP OPEN-SOURCE ANALYSIS

What the list is for

The questions run from basic to advanced. The README presents them as a way to test how well you know JavaScript, refresh your knowledge, or prepare for a coding interview. The author, Lydia Hallie, notes the repository is updated regularly with new questions, and adds the answers in collapsed sections below each question that you expand by clicking. It is presented as something done for fun rather than a formal course.

03
DEEP OPEN-SOURCE ANALYSIS

How answers are presented

Each question comes with a short explanation that walks through the mechanics of the example. A note at the top of the README explains that the repository was created in 2019, so the questions are based on the JavaScript syntax and behavior at that time. Since the language keeps evolving, there are newer features the questions do not cover. The community helps maintain and improve the list.

04
DEEP OPEN-SOURCE ANALYSIS

A few of the topics covered

The excerpts give a sense of the range. One covers var hoisting, where a variable is set up during the creation phase with a default value of undefined until its defining line runs. Another explains the temporal dead zone for let and const, where accessing the variable before its declaration throws a ReferenceError. A setTimeout example walks through the event queue and the block scoping difference between var and let inside a loop.

05
DEEP OPEN-SOURCE ANALYSIS

Translations and reuse

Twenty translations are available, covering languages such as Arabic, German, Spanish, French, Indonesian, Japanese, Korean, Dutch, Brazilian Portuguese, Russian, Thai, Turkish, Ukrainian, Vietnamese, and Chinese. Users are free to use the questions in their own projects, and the author asks for a reference back to the repository in return. The homepage link in the repository description points to a personal site.

06
DEEP OPEN-SOURCE ANALYSIS

Editorial conclusion

The list is free to reuse in your own projects, with a request for a reference back to the repository. The answers reflect JavaScript syntax and behavior as of 2019, so newer language features are not covered.

07
DEEP OPEN-SOURCE ANALYSIS

Official sources

08
Community notes

Community notes