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…
Let's say there is a file in my app that consists of nothing but hundreds of exported functions, but only one rarely used part of my app uses them. A file like this: export function a() { .. } export…