What will be the output

freakynit

Nitin Bansal

Posted on November 20, 2021

What will be the output

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'))
Enter fullscreen mode Exit fullscreen mode

No cheating 😡

💖 💪 🙅 🚩
freakynit
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.

Related