The Event Loop — Predict the OUTPUT ORDER
Questions 1 console.log('A'); setTimeout(() => console.log('B'), 0); Promise.resolve().then(() => console.log('C')); console.log('D'); Output order? Show answer A, D, C, B Sync logs A and D. Then the microtask (C) drains before the setTimeout