Question 5 of 1005%
5

This runs in Node.js. What order do these get logged in?

async function test() {
  console.log("1");

  await Promise.resolve();

  console.log("2");
}

test();

process.nextTick(() => console.log("nextTick"));

Promise.resolve().then(() => console.log("promise"));

console.log("3");
5/100