Storrsoft interview question

How does JS event loop works?