Skip to main content
🔮 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");

🔮 What is the output?