JavaScript Interview Questions (2026) — 16 Real Questions + AI Mock Interview
JavaScript interviews test whether you understand the runtime, not just the framework on top of it. Expect closures, the event loop, `this` binding, and async behaviour in nearly every loop, plus a coding round. In 2026, frontend and full-stack teams still filter hard on the fundamentals because they predict how you'll debug real async bugs. Below are the questions that come up most, with what a senior interviewer is grading for.
16 JavaScript interview questions you'll actually get asked
-
1. Explain closures with a real example.
How a senior interviewer scores this: Articulates captured lexical scope and gives a concrete use — data privacy, callbacks, or memoisation.
-
2. var vs let vs const — scope, hoisting, and the TDZ.
How a senior interviewer scores this: Function vs block scope, the temporal dead zone, and that const blocks reassignment, not mutation.
-
3. == vs === and how coercion works.
How a senior interviewer scores this: Knows the coercion traps and defaults to === unless coercion is deliberate.
-
4. Walk me through the event loop: call stack, microtasks, macrotasks.
How a senior interviewer scores this: Knows promises (microtasks) drain before setTimeout (macrotasks).
-
5. How is `this` determined, and how do arrow functions change it?
How a senior interviewer scores this: Default/implicit/explicit/new binding rules; arrow functions capture lexical this.
-
6. Promises vs async/await — how do you handle errors?
How a senior interviewer scores this: try/catch around await, Promise.all for concurrency, and avoids the floating-promise bug.
-
7. Explain prototypal inheritance.
How a senior interviewer scores this: Describes the prototype chain and how lookups resolve; contrasts with classical inheritance.
-
8. What's the difference between null and undefined?
How a senior interviewer scores this: Intentional absence vs uninitialised, and the typeof null === 'object' quirk.
-
9. Debounce vs throttle — when do you use each, and can you implement debounce?
How a senior interviewer scores this: Picks the right one for the scenario and writes a correct debounce with a timer.
-
10. What does Array.reduce do? Give a non-sum example.
How a senior interviewer scores this: Understands the accumulator pattern beyond addition — grouping, flattening, or building an object.
-
11. How would you run three API calls concurrently vs sequentially?
How a senior interviewer scores this: Promise.all for concurrency; flags awaiting inside a loop as an accidental serialisation bug.
-
12. Shallow vs deep copy in JavaScript.
How a senior interviewer scores this: Knows spread/Object.assign are shallow and reaches for structuredClone for deep copies.
-
13. What is event delegation and why use it?
How a senior interviewer scores this: Leverages bubbling to attach one listener on a parent; better for dynamic lists.
-
14. CommonJS vs ES Modules.
How a senior interviewer scores this: require vs import/export, static analysis, and tree-shaking benefits of ESM.
-
15. What is the temporal dead zone?
How a senior interviewer scores this: let/const exist but can't be accessed before declaration; explains why that's safer than var hoisting.
-
16. Explain how `bind`, `call`, and `apply` differ.
How a senior interviewer scores this: call/apply invoke immediately (args list vs array); bind returns a new bound function.
How JavaScript answers are scored
Strong candidates aren't just correct — they're graded on five dimensions a real interviewer weighs: technical correctness, communication, problem-solving, depth, and culture fit. For JavaScript specifically, the fastest score jump is narrating your reasoning and trade-offs out loud before you write code. Each question above lists what the interviewer is actually listening for.
Free gets you ready. Pro gets you sharp.
Practising these JavaScript questions out loud is free — unlimited mock interviews, the full 8,675 real questions across 23 languages, and the AI Study Coach, no credit card. When you want real-pressure reps, Pro ($10/mo) adds live voice interviews with Zaheen, the AI coach who asks follow-ups, pushes back, and scores you like a real interviewer — plus unlimited sessions.
See what Pro adds → $10/mo7-day money-back guarantee · cancel anytime
JavaScript interview FAQ
What level are these JavaScript interview questions for?
Junior through senior frontend and full-stack roles. Screens lean on closures, scope, and the event loop; senior loops add async architecture and performance. Practise the fundamentals deeply — they predict how you debug real async issues.
Should I prepare framework questions too?
Yes, but fundamentals come first. Interviewers test the runtime — closures, `this`, the event loop — because they transfer across React, Vue, or Node. Layer framework specifics on top once the core is solid.
Do JavaScript interviews include live coding?
Usually. Expect a DOM, array-manipulation, or async problem you code while explaining. Narrate your approach and edge cases out loud — interviewers grade your reasoning as much as the working answer.