how JavaScript's event loop works? (interactive demo)

JavaScript Call Stack/Event Loop Visualization

Imperative vs. Declarative (2013)