Puzzle 13 of 15 · Timers
Follow synchronous console logs around a zero-delay setTimeout. Predict the order in which the logs appear. Choose an output below, then check the explanation. No signup needed. Browse puzzles by topic →
1console.log("A"); 2setTimeout(() => console.log("B"), 0); 3console.log("C");
Predict the console output. Each line is a separate log.
A B C
B A C
A C B
C B A