🔮 Output PredictionND Node.js Hard⚡+35 XP
Event Loop Priority
In what order do these execute?
Node.js
setTimeout(() => console.log("A"), 0);
Promise.resolve().then(() => console.log("B"));
console.log("C");In what order do these execute?
setTimeout(() => console.log("A"), 0);
Promise.resolve().then(() => console.log("B"));
console.log("C");