Latest Update: 17 April 2021

Promise, Async/Await

When working with asynchronous operations in JavaScript, we often hear the term Promise. But it can be tricky to understand how they work and how to use them.

Unlike many traditional coding tutorials, in this tutorial, we'll learn by doing. We'll complete four tasks:

  • Task 1: Promise basics with a story

  • Task 2: Build a guessing game

  • Task 3: Fetch country info from an API

  • Task 4: Fetch neighboring countries


To follow along, download the sources or access the design here.