Skip to content
cansukaluc.dev

Lab · Language depth

Guess the Output

The questions that separate "I use JavaScript" from "I understand JavaScript" — the event loop, closures, coercion, hoisting, this, and floating-point. Each answer comes with the why.

demonstrates: interview-grade language depth

Question 1/7 · Event loopscore 0 · streak 0

What does this log?

console.log('A');
setTimeout(() => console.log('B'), 0);
Promise.resolve().then(() => console.log('C'));
console.log('D');