Learn › JS Output Questions
🔮 JS Output Questions
72 predict-the-output questions — the category that trips up even experienced JS devs in real interviews.
Goal
Predict the output of any hoisting, closure, async, coercion, or prototype question without running it. 01
Output Questions: Hoisting & Scope
medium ⏱ 25m 02 Predict the output — var/let/const hoisting, TDZ, function declaration vs expression, and block scope gotchas.
Output Questions: Closures & Loops
medium ⏱ 25m 03 Predict the output — closure capture, stale closures, IIFE patterns, loop bugs, and memoization gotchas.
Output Questions: Event Loop & Async
hard ⏱ 30m 04 Predict execution order — setTimeout vs Promise vs queueMicrotask, async/await unwrapping, and nested async patterns.
Output Questions: this & Prototype Chain
hard ⏱ 28m 05 Predict the output — implicit/explicit/new binding, arrow functions, prototype lookup, class inheritance, and the classic this-loss traps.
Output Questions: Coercion, Operators & Equality
hard ⏱ 25m 06 Predict the output — type coercion puzzles, == vs ===, + operator surprises, typeof edge cases, and bitwise/logical traps.
Output Questions: Mixed & Advanced
hard ⏱ 30m Predict the output — generators, class edge cases, Array methods, Object tricks, Symbol, and multi-concept combinations.