I wrote the following code which I run in Chrome Dev-Tools:
function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } async functio