The event loop

JavaScript follows an event loop-based model in how it works. This is very different from languages such as Java. Although modern JavaScript compilers implement a very complex and heavily optimized version of the event loop model, we can still basically understand how the event loop works.

Get Learn ECMAScript - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.