cf.completefrontend

Predict the outputEasy

Several timers with different delays: in what order do they fire?

What does this log?
setTimeout(() => console.log("30 ms"), 30);
setTimeout(() => console.log("0 ms, first"), 0);
setTimeout(() => console.log("10 ms"), 10);
setTimeout(() => console.log("0 ms, second"), 0);
console.log("sync");

The answer

Work out every line it logs, in order. Then check.

Checking your sign-in…