Question 11
What will be the order of console output when the following JavaScript code is executed?
async function test() { console.log("P"); await Promise.resolve(); console.log("Q");}console.log("R");test();console.log("S");R P Q S
P R S Q
R P S Q
R S P Q