Javascript – What happens with async await exactly?
I have such a piece of code async function loop() { for (let i = 0; i < 3; i++) { console.log(i,new Error("").stack); await 1; } } loop(); when I run it in Node (Chrome engine) I get this: 0…
I have such a piece of code async function loop() { for (let i = 0; i < 3; i++) { console.log(i,new Error("").stack); await 1; } } loop(); when I run it in Node (Chrome engine) I get this: 0…