JavaScript Essentials

Lesson 10 · 14 min

Asynchrony

A request takes a while. The code doesn't wait, so you need a way to wait for it.

A request to a server takes time. JavaScript doesn't stand still: it sends the request and moves on, and the result arrives later. So you need a way to say "when the data arrives, do this".

Sign in to continue

The rest of this lesson opens after sign up

The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.