Javascript – How does event loop handles async await internally?
Let us say we have the following async function - async function foo(x,y) { x = x+1 await fetch('some_url') y = y+1 } When the function foo encounters await, the execution of foo must be suspended and its context must…