ANNUAL PRO PLAN, BEST VALUE

Save 33% with annual billing - only $5.99/mo

Annual Pro: $5.99/mo

Upgrade
Home
CoursesExercisesProjectsNew
SandboxResourcesBlog
ProfilePricing
Home
CoursesExercisesProjectsNew
SandboxResourcesBlog
ProfilePricing
Back to async js

Lesson 2

The Event Loop & Task Queue

9 stages

1

The Problem: How Does JavaScript Wait Without Freezing?

Read
2

Handing Work Off: Web APIs

Read
3

Predict the Output: setTimeout

Exercise
4

The Event Loop

Read
5

The Event Loop Check

Quiz
6

The Task Queue

Read
7

Multiple Timers Queue Up

Exercise
8

A Common Misconception: setTimeout is Not Precise

Read
9

Lesson 2 Review

Quiz

Next step

Move forward when you're ready.

Continue with Microtasks and the Microtask Queue.

Next lesson