Skip to content
RED SAG Skills
mediumStudy question · answer published in JavaScript interview questions, so no pointsjavascriptevent-loopnodejs

nextTick versus promise in Node

In Node.js (CommonJS script), what is the log order?

Promise.resolve().then(() => console.log("promise"))
process.nextTick(() => console.log("tick"))
console.log("sync")
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions