Analyze the Event Loop. What exactly will the console output?
console.log(1);
setTimeout(() => console.log(2), 0);
Promise.resolve().then(() => console.log(3));
console.log(4);
Type exactly what will appear in the console.
Output spans multiple lines - one per line. Submit: Ctrl+Enter.