No timer
A question waits for you. Understanding beats speed.
no timer · 4 options · why it is right
You have been writing closures for years. In the interview they ask you to define one out loud, in one sentence — and that is where good developers lose the offer.
You have shipped most of this already. Saying it out loud, under pressure, in one sentence, is a different skill — and it is the one being scored.
function make() {
let count = 0;
return () => ++count;
}
const next = make();
next(); // 1
next(); // 2So why doescountsurvive aftermake()has already returned?
Every answer here ends with the sentence you would say in the room.
A real one from the advanced level, shown answered.
Synchronous code, promise callbacks and timers are not served from the same queue.
console.log("Start");
setTimeout(() => console.log("Timeout"), 0);
Promise.resolve().then(() => console.log("Promise"));
console.log("End");Correct
The synchronous lines run first, so Start and End come out immediately. Then the microtask queue is drained — that is where promise callbacks live — and only after it is empty does the event loop take a macrotask like a setTimeout.
The rule, stripped to three lines:
console.log("sync");
Promise.resolve().then(() => console.log("microtask"));
setTimeout(() => console.log("macrotask"), 0);
// sync -> microtask -> macrotask, every timelead · snippet · four options · verdict · why it is right · worked example · reference
On the way
101 lectures and 414 questions, drawn from one bank. Read the subject, then find out immediately whether it stuck — every lecture ends with questions on what you just read, and every one of them links out to the reference, so going deeper does not mean opening a new tab full of blog posts.
A question waits for you. Understanding beats speed.
Spread across 5 formats first, 67 topics second — never fifteen of the same kind.
The draw serves what you have not seen. Four runs walk a level once.
Your place is saved as you answer. Refreshing offers Resume.
1–4 to answer · Enter or → to advance · nothing about a run leaves your browser
Every question here started as a question somebody was actually asked — collected from real technical interviews, not lifted from a syllabus.
$19
Every question and every lecture in it, including the ones written after you buy.
$59
All 6, as each one ships. Bought separately they would come to $114.
paid once · no subscription · the basic level is free
Nothing is behind a paywall yet — the checkout is not built, so every question and every lecture is open today.