Pergunta de entrevista da empresa EPAM Systems

Explain how JavaScript’s event loop works, including the roles of the call stack, microtask queue, macrotask queue, and how Promises and async/await are scheduled and executed.