behaviour of async/await functions – Javascript
I am seeing an unexpected output when running some functions using async/await which I can't work out. The code looks like: const delayToRun = async() => { console.log('first delay'); let p = await new Promise((resolve, reject) => { setTimeout(() =>…