Understanding the order of async calls and setTimeouts
The code below contains a function (logger) that sets a timeout, then consoles an async function, then consoles an element (‘c’). The output here is ‘a’, ‘b’, ‘c’. How is it that ‘c’ waits for the other two to return? The await call is inside a console.log, so I thought the ‘c’ console will go… Read More Understanding the order of async calls and setTimeouts