Skip to content
RED SAG Skills
easyStudy question · answer published in Node.js interview questions, so no pointsnodejsevent-loop

Promise and setTimeout order

What does this Node.js code print?

console.log('A')
setTimeout(() => console.log('B'), 0)
Promise.resolve().then(() => console.log('C'))
console.log('D')
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions