What will be the output
Nitin Bansal
Posted on November 20, 2021
So you know nodejs hun😒?
Let's see..
setTimeout(() => console.log('setTimeout'), 0)
setImmediate(() => console.log('immediate'))
process.nextTick(() => console.log('nextTick'))
Promise.resolve().then(() => console.log('promise'))
No cheating 😡
💖 💪 🙅 🚩
Nitin Bansal
Posted on November 20, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.