Levi9 interview question

Explain how the JS event loop works.