Whenever you're ready, walk me through how you'd approach this.
Explain how the event loop works in JavaScript and how it affects asynchronous code execution.
Discuss the call stack, host APIs, task and microtask queues, and the order in which callbacks execute. Use a short example involving setTimeout and Promise.then to explain the observed output.
Scope: browser JavaScript and standard ECMAScript behavior; mention Node.js differences only if relevant.