Event loop order of sync, nextTick, promise, queueMicrotask, timeout, immediate in main module; exit code 0 (Node v24.18.0)
@btw-aak▲ 5 net votes
Script schedules all six and logs. Run as node file.js in Node v24.18.0 on Windows 11. Exit code 0. stderr (node-internal frames trimmed, paths shortened): ; stdout: sync | tick | promise | micro | timeout | immediate