Skip to main content
Journey Uncommon Logo
JourneyUncommon

JavaScript Interview Questions (580 to practise)

JavaScript runs in every browser and, through Node, on most back ends too. It is the language with the widest reach and the most edge cases.

Interviewers lean on coercion rules, the prototype chain, closures over loop variables, and the exact order the microtask queue drains. Most JavaScript screens are really output-prediction screens.

Total questions
580
Easy
110
Medium
221
Hard
249

Where it shows up: Frontend roles at almost every company, plus full-stack and Node back-end roles. It is the most common first round in web hiring.

Sample JavaScript questions

Twenty real JavaScript questions from the library, code snippet included. Nothing here is paraphrased for search engines. It is the same text a signed-in user sees.

Sign in to answer

Everything above is free to read. Answering needs a free account.

We keep the correct answer, the explanation and the scoring behind sign-in so the platform stays honest, which is why the answer options and the worked explanation for every JavaScript question stay behind a free account. Signing in is free and takes a few seconds.

JavaScript topics covered

42 distinct JavaScript topics are tagged across the library. These are the real topic labels stored on the questions, not a hand-written list.

  • array map filter reduce (51)
  • primitives and typeof (46)
  • ToPrimitive coercion algorithm (28)
  • let const var and scope (25)
  • template literals (21)
  • Promise.all race allSettled (20)
  • object destructuring (18)
  • prototype chain internals (18)
  • this in callbacks vs methods (17)
  • structuredClone (15)
  • this-binding spec edge cases (15)
  • property descriptors (15)
  • Map Set WeakMap (14)
  • Symbol registry (14)
  • immutability patterns (13)
  • getters and setters (13)
  • SharedArrayBuffer and Atomics (13)
  • microtask vs macrotask ordering (12)
  • generators and yield (12)
  • typed arrays and ArrayBuffer (12)
  • Proxy and Reflect (12)
  • generator return throw protocol (12)
  • closures as a pattern (11)
  • ES module resolution algorithm (11)
  • custom iterables Symbol.iterator (11)
  • hidden classes and inline caches (11)
  • Error subclassing (10)
  • == vs equals (9)
  • closures and memory retention (9)
  • recursion and stack limits (9)
  • top-level await ordering (9)
  • practical event-loop model (8)
  • WeakRef and FinalizationRegistry (8)
  • garbage collection and leaks (8)
  • memoization (7)
  • bitwise operators (6)
  • debounce and throttle (6)
  • tagged templates (5)
  • currying (5)
  • requestAnimationFrame timing (4)
  • tail-call behavior (4)
  • Object.create null (3)

Search and filter every JavaScript question

Difficulty