let a; queueMicrotask(() => a = "qm"); Promise.resolve().then(() => a = "p"); await Promise.resolve(); console.log(a);