Skip to content
RED SAGSkills
hard20 pts · first answer countsevent-loopasync-javascript

Order of logs around await

What is the order of the logs?

async function a() {
  console.log(1)
  await null
  console.log(2)
}
a()
Promise.resolve().then(() => console.log(3))
console.log(4)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions