Q13: What is the difference between process.nextTick() and setImmediate()?

process.nextTick() fires immediately after the current operation finishes, before the Event Loop continues to any other phase. setImmediate() schedules callbacks in the Check phase of the Event Loop.

Key Takeaways
  • process.nextTick() runs prior to the next Event Loop tick.
  • setImmediate() runs during the Event Loop Check phase.
Knowledge Check

Which queue does process.nextTick() push callbacks onto?