Promise.resolve().then(() = { process.nextTick(() = { console.log(2) }) Promise.resolve().then(() = { console.log(1) }) }) // 1 2