Revolut Interview Question

Describe to me how event loop works in JS.