Cefalo interview question

How Javascript event loop works?