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

JavaScript Questions: A dated but still useful interview drill

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

65,275 stars9,199 forksUnknownMIT

At a glance

What is it?
Lydia Hallie's JavaScript Questions is a large collection of multiple-choice quizzes with detailed explanations, built in 2019 and updated since. It is a solid study aid for interview prep, but its content reflects the ECMAScript of its time and lacks any interactive or automated features.
Who is it for?
Adopt this repo if you are a JavaScript developer preparing for a technical interview and want a large set of multiple-choice questions with concise answers, or if you need a ready-made quiz in one of over twenty languages. Avoid it if you expect up-to-date coverage of modern ECMAScript features, or if you want an interactive or automatically graded tool.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Probably not. The repository last received commits 27 months ago, on August 4, 2024.
What is it written in?
GitHub does not report a main language for this repository.

Answers come from the project's GitHub data, last synced on November 15, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • lydiahallie/javascript-questions65,275 ★ · -42
Star history
Repository2026-08-182026-11-15
lydiahallie/javascript-questions65.3k65.3k

-42 Stars in the last 89 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

What this repository actually is

The English content is a single Markdown file, README.md, that contains a numbered list of JavaScript questions. Each question is a short code snippet followed by multiple-choice answers, and the correct answer is hidden inside a collapsed <details> element. The README states it was created in 2019 and that the questions are based on JavaScript syntax and behavior at that time. The author, Lydia Hallie, says she updates the repo regularly, but the material itself is static text. There is no build system, no package.json, and no executable code. It is purely a study document. The target audience is anyone who wants to test their JavaScript knowledge, refresh it, or prepare for a coding interview, as the README explicitly says.

The question format and the explanation style

Each question follows the same pattern. A code snippet is shown, three or four options are listed, and the answer is revealed in a collapsed section. The explanation is a short paragraph that walks through the JavaScript behavior. For example, question 1 asks about hoisting with var and let. The explanation describes the creation phase, the default undefined value for var, and the temporal dead zone for let. This format is consistent across the visible questions. The explanations are not exhaustive, but they are direct and focus on the specific mechanism that produces the output. This makes the repo useful for quick review, but it also means that deeper context, such as edge cases or related language features, is often omitted. The reader is expected to take the explanation at face value.

The content is frozen in 2019, and that is a real limitation

The README contains a prominent note: the questions are based on JavaScript syntax and behavior at the time of creation in 2019. Since JavaScript evolves, newer language features are not covered. This is not a trivial caveat. For example, optional chaining (?.) and nullish coalescing (??) became standard in 2020, and the README's note says newer language features are not covered by the questions. If you are preparing for a modern interview, you will need to supplement this material with other sources. Worse, some answers that were correct in 2019 may no longer be correct if the language behavior changed, though the visible questions do not show such a case. The author acknowledges this, but the repo remains a snapshot rather than a living reference.

How to use it: no installation, just read and expand

There is no installation or setup. You open the README.md file on GitHub, or clone the repository, and read the questions. To see an answer, you click the collapsed section below the question. The README says the answers are in collapsed sections and you can simply click to expand them. The repo also includes translation directories for over twenty languages, such as ar-AR, de-DE, es-ES, fr-FR, ja-JA, ko-KR, and zh-CN. Each translation is a separate README file in its own folder. You can browse those files directly. If you want to use the questions in a project, the README gives permission, but asks for a reference to the repo. There is no API, no CLI, and no way to track your progress. It is a plain text study tool.

Licence and maintenance: MIT, but with a caveat

The repository is licensed under the MIT License, which means you can reuse the content freely, provided you include the license notice. The README also asks for a reference if you use the questions in a project, but that is a request, not a legal requirement. The repo is not archived, and the author says she updates it regularly. The lack of a release history or a changelog means you cannot easily track what has changed. The maintenance cost for a user is low: you only need to re-read the file to see if new questions were added. For a contributor, the cost is higher, because the entire question set lives in one massive Markdown file, which makes editing and reviewing changes harder than if questions were split into separate files.

Where this tool falls short

The biggest limitation is that it is a static list. There is no quiz mode, no scoring, no randomization, and no way to filter questions by topic. The README lists questions in a fixed order, starting with basic hoisting and moving to more advanced topics. If you want to practice only closures or only async, you have to scroll and search manually. The explanations are also very short, often just a few sentences. They explain the immediate behavior but rarely discuss why the language works that way or what the implications are. For a beginner, this may be enough, but for an experienced developer, it can feel shallow. The repo is also entirely text-based, so there is no interactive element. You cannot run the code snippets to verify the answers, which means you have to trust the author's reasoning.

A practical alternative: interactive quiz platforms

A direct alternative is an interactive JavaScript quiz platform such as JavaScript Quiz on websites like jschallenger.com or the quiz sections of freeCodeCamp. The key difference is that these platforms run the code in a sandbox and give immediate feedback on your answer, often with a score and a progress tracker. They also tend to be updated more frequently to reflect new language features. In contrast, this repo is static and requires manual self-assessment. Another alternative is to read the ECMAScript specification directly, or to use a book like 'You Don't Know JS' by Kyle Simpson, which explains the underlying mechanisms in depth. The repo's advantage is its compactness and the breadth of questions in one place, but for active learning, an interactive tool is more engaging and less error-prone.

Who should use it, and what to check first

This repository is best for a developer who wants a quick, self-contained review of JavaScript fundamentals before an interview. The question set covers common pitfalls like hoisting, closures, event loop behavior, and arrow function this binding, as seen in the first few questions. If you are comfortable with reading long Markdown files and can discipline yourself to expand each answer, it works well. However, if you need up-to-date coverage or want to practice in a simulated test environment, look elsewhere. Before you rely on it, check the current date and compare the content against the latest ECMAScript release. The note in the README is honest, but it means you must verify that the questions you study still reflect the language you will be asked about. The repo is a useful artifact, but it is not a substitute for a current reference.

Editorial conclusion

Adopt this repo if you are a JavaScript developer preparing for a technical interview and want a large set of multiple-choice questions with concise answers, or if you need a ready-made quiz in one of over twenty languages. Avoid it if you expect up-to-date coverage of modern ECMAScript features, or if you want an interactive or automatically graded tool. Before relying on it, verify that the specific topics you need (such as optional chaining, nullish coalescing, or newer array methods) are present, and cross-check any answer you are unsure about with the current ECMAScript specification, because the questions were written against 2019 behavior and some answers may be outdated.

Frequently asked questions

What are some common JavaScript questions and answers?

This repository collects them as output-prediction puzzles: a numbered heading, a JavaScript snippet, lettered options, and a collapsed block with the answer and a short explanation. The visible questions cover variable hoisting and the temporal dead zone, closures per loop iteration, `this` in arrow functions, unary coercion, and dot versus bracket notation.

Is the JavaScript Questions list still being updated?

The last push to the repository was 2024-08-04 and it has published no GitHub releases. The README's own opening note says the repository was created in 2019, that the questions reflect the syntax and behaviour of the language at that time, and that newer language features are not covered.

Does JavaScript Questions have translations?

The repository holds twenty-two translated directories alongside the English README, covering Arabic in two variants, Bosnian, German, Spanish, French, Indonesian, Italian, Japanese, Korean, Dutch, Polish, Brazilian Portuguese, Romanian, Russian, Albanian, Thai, Turkish, Ukrainian, Vietnamese, and both Simplified and Traditional Chinese. The summary line above the list advertises 20 translations, while 22 entries are listed beneath it.

Is there a PDF of JavaScript questions and answers?

The repository does not publish one. The content is a Markdown README plus the translated copies in the language directories, with no package.json, no build step and no releases, so the questions and their collapsed answers are read directly from the file.

Are the JavaScript Questions multiple choice?

Yes. Each question lists options A, and usually B, C and D, with the expected values written as inline code, and the answer is given as a letter inside a collapsed details block followed by an explanation of the mechanism involved.

Official sources

  1. Official README
  2. Project repository
  3. README
  4. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/lydiahallie-javascript-questions.svg)](https://hysenlabs.com/projects/lydiahallie-javascript-questions)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/lydiahallie-javascript-questions.svg)](https://hysenlabs.com/projects/lydiahallie-javascript-questions)

Was this useful?