Brainlag
  1. Web
  2. Data and the network
27/38 lessons

Async code, promises and await

35 min4 exercisesPremium

Understand code that finishes later: timers, promises, async functions and await, the order things really run in, and waiting for several things at once.

The skill
Write code that waits for slow work with promises and await.
You make
A countdown with pauses and a loader that fetches players side by side.

Premium lesson

£7.99 a month or £59 a year. Cancel any time.

Builds on 26 JSON: data as text. Free to try: Web Foundations and the playground.

Step 1 of 8
exercise_1.js

You've reached the good stuff.

4 exercises in this lesson, checked as you type. Premium opens every lesson after Foundations, in all four courses.

JavaScript