Hint
The Promise constructor executor is synchronous. Only .then callbacks are asynchronous.
console.log('a');
new Promise(resolve => {
console.log('b');
resolve();
}).then(() => console.log('c'));
console.log('d');a b d c
Explanation: The executor function runs synchronously (b logs immediately). resolve() schedules .then as a microtask. d logs sync. Then microtask: c.
Key Insight: The Promise constructor executor is synchronous. Only .then callbacks are asynchronous.