0
What is the output of the following JavaScript code?
async function f() {
console.log(1);
await null;
console.log(2);
}
f();
console.log(3);- A1 2 3
- B3 1 2
- C1 3 2
- D2 1 3
Correct answer: C
What is the output of the following JavaScript code?
async function f() {
console.log(1);
await null;
console.log(2);
}
f();
console.log(3);