Skip to content

MediumScenarioRuntime and event loop

A script prints output in a surprising order mixing promises, nextTick and setTimeout. How do you reason about it?

This answer is part of Pro

10 of 67 Node.js Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

More on Runtime and event loop

Flashcards for this topic