console.log(1); await new Promise((r) => setTimeout(r, 100)); console.log(2);