Question PRG-JS-0044
MediumWhat is the output of this program?
console.log("start");
setTimeout(() => console.log("timeout"), 0);
Promise.resolve().then(() => console.log("promise"));
console.log("end");
- A.
start promise end timeout
- B.
start end promise timeout
- C.
Sign up free to see the answer and a step-by-step explanation.