DevTrackSPEC
●3d
← Back to Practice ArenaENGINE INTERNALS // CALL STACK & QUEUES

JavaScript Output Predictions

Master tricky interview questions on closures, temporal dead zones, event loop microtask queuing, and 'this' bindings.

SCORE: 0
Event Loopmedium
CHALLENGE 1 OF 4

Microtask Queue vs Macrotask Timers

Predict the exact console output order or errors produced by the JavaScript runtime engine.

console.log("A");

setTimeout(() => {
  console.log("B");
}, 0);

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

queueMicrotask(() => {
  console.log("D");
});

console.log("E");
YOUR OUTPUT PREDICTION (LINE BY LINE):