no timer · 4 options · why it is right

You use it every day.Can you explain it?

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.

  • 265 explain it in wordsconcept · compare · definition
  • 149 read the codetrace it · find the bug

The gap is not in your code

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.

What you write
function make() {
  let count = 0;
  return () => ++count;
}

const next = make();
next(); // 1
next(); // 2
What you get asked
So why does count survive after make() has already returned?

Every answer here ends with the sentence you would say in the room.

What a question looks like

A real one from the advanced level, shown answered.

AdvancedEvent looptrace it

Synchronous code, promise callbacks and timers are not served from the same queue.

In what order are these logged?

Code sample
console.log("Start");

setTimeout(() => console.log("Timeout"), 0);

Promise.resolve().then(() => console.log("Promise"));

console.log("End");
  • Start, End, Promise, Timeout (correct answer)
  • Start, End, Timeout, Promise
  • Start, Timeout, Promise, End
  • Start, Promise, End, Timeout

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:

Code sample
console.log("sync");
Promise.resolve().then(() => console.log("microtask"));
setTimeout(() => console.log("macrotask"), 0);
// sync -> microtask -> macrotask, every time

lead · snippet · four options · verdict · why it is right · worked example · reference

Pick a track

On the way

Node.js

Coming soon
  • in the works

React

Coming soon
  • in the works

Angular

Coming soon
  • in the works

CSS

Coming soon
  • in the works

Learn it and test it in the same place

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.

No timer

A question waits for you. Understanding beats speed.

A mixed draw

Spread across 5 formats first, 67 topics second — never fifteen of the same kind.

New questions next time

The draw serves what you have not seen. Four runs walk a level once.

A reload costs nothing

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.

What it costs

$19

One track

Every question and every lecture in it, including the ones written after you buy.

$59

Every track

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.

Ready?