Quiz
Microtasks vs Timers Ordering
Predict the console output order when mixing synchronous code, setTimeout, and promises.
What is the console output order? console.log('1'); setTimeout(() => console.log('2'), 0); Promise.resolve().then(() => console.log('3')); console.log('4');