Latest Update: 05 December 2020

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 by the end of the article:

  • 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