Puzzle 15 of 15 · await
Follow an async function through await and a console log in its caller. Predict the order of the logs as execution pauses and resumes. Choose an output below, then check the explanation. No signup needed. Browse puzzles by topic →
1async function peek() { 2 console.log("A"); 3 await Promise.resolve(); 4 console.log("B"); 5} 6peek(); 7console.log("C");
Predict the console output. Each line is a separate log.
A C B
A B C
C A B
B A C