Level 14

await pauses one function

An async function hits an await. What happens to the code that called it?

async function task() {  console.log('B');  await null;  console.log('D');}console.log('A');task();console.log('C');

1. Predict the output

Tap the lines in the order you think they print.

  1. 1…
  2. 2…
  3. 3…
  4. 4…