cf.completefrontend

Predict the outputEasy

The script throws an uncaught error. Do the callbacks it already scheduled still run?

What does this log?
setTimeout(() => {
  console.log("timer 1");
  throw new Error("boom");
}, 0);
setTimeout(() => console.log("timer 2"), 0);
Promise.resolve().then(() => console.log("microtask"));
 
console.log("start");
notAFunction();
console.log("end");

The answer

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

Checking your sign-in…