DEV Community

Nitin Bansal
Nitin Bansal

Posted on

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 😡

Top comments (0)