Hint
The Promise executor is synchronous. Only .then() callbacks are async (microtasks).
console.log('1');
new Promise((resolve) => {
console.log('2');
resolve();
console.log('3');
}).then(() => console.log('4'));
console.log('5');1 2 3 5 4
Explanation: The Promise executor function runs synchronously. resolve() schedules the .then callback as a microtask but does NOT stop execution. "3" still prints before "5".
Key Insight: The Promise executor is synchronous. Only .then() callbacks are async (microtasks).