explaingit

greatfrontend/top-javascript-interview-questions

9,476MDXAudience · developerComplexity · 1/5Setup · easy

TLDR

A curated collection of hundreds of JavaScript interview questions with answers, organized by frequency, difficulty, and topic, covering closures, async patterns, prototype chains, and more. No code to install, browse directly on GitHub.

Mindmap

mindmap
  root((repo))
    Frequency
      Most asked
      Common patterns
    Difficulty
      Basic
      Intermediate
      Advanced
    Topics
      Closures
      Async code
      Prototype chain
      Event handling
    Format
      README browsable
      Code snippets
      Linked explanations
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Review the most frequently asked JavaScript questions before a technical job interview

USE CASE 2

Self-assess knowledge gaps by working through basic, intermediate, and advanced question tiers

USE CASE 3

Study specific concepts like closures, async/await, or prototype chains using the organized topic sections

Tech stack

JavaScriptMDX

Getting it running

Difficulty · easy Time to first run · 5min
No license information is provided in the explanation.

In plain English

This repository is a curated collection of JavaScript interview questions and answers aimed at people preparing for front-end engineering job interviews. It was put together by GreatFrontEnd, a platform for front-end interview preparation, and contains several hundred questions covering a wide range of JavaScript topics from basic to advanced. The content is organized in a few ways. The first section lists the most frequently asked questions in interviews, each with a concise answer and a link to a longer explanation. A second section provides a more comprehensive list suitable for reviewing concepts you may have forgotten or want to study more thoroughly. A third section groups questions by difficulty level: basic, intermediate, and advanced. The questions in the basic tier cover things like variable declarations, scope, closures, prototype chains, event handling, and how asynchronous code works. Intermediate and advanced questions go deeper into topics like memory management, design patterns, and browser APIs. The answers live directly in the README as text, not as separate files or code. This makes the whole thing browsable on GitHub without opening anything additional. The file format is MDX (Markdown with support for JSX components), though the readable content is plain prose and short code snippets. This kind of resource is useful for someone who knows JavaScript to some degree and wants to review the concepts that come up repeatedly in technical screens. It is also useful for self-assessment: working through the question list reveals which topics need more study before an interview. The content is updated periodically and the README notes it was refreshed for 2025. There is no code to install or run. The repository exists purely as a reference document. The full README is longer than what was shown.

Copy-paste prompts

Prompt 1
I have a JavaScript interview tomorrow. Quiz me on closures, prototype chains, and event handling, give me the question first, then reveal the answer after I respond.
Prompt 2
Explain how JavaScript's event loop and the call stack work together, then give me 3 follow-up interview questions at intermediate difficulty.
Prompt 3
I keep mixing up var, let, and const in JavaScript. Give me a concise comparison covering scope, hoisting, and reassignment, then quiz me on it.
Prompt 4
Generate a 10-question JavaScript quiz at advanced difficulty covering memory management, design patterns, and browser APIs, include answers at the end.
Prompt 5
What are the top 5 JavaScript interview questions about asynchronous code, and what are the ideal answers a senior engineer would give?
Open on GitHub → Explain another repo

← greatfrontend on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.