Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Treehouse

Asynchronous Code in Express Course

via Treehouse

Overview

In this course, we’ll look more closely at three approaches to handling asynchronous operations in Express: callbacks, promises, and async/await.

What you'll learn

  • Using callbacks in Express
  • Using promises in Express
  • Using async/await syntax in Express

Syllabus

Asynchronous Code in Express

Asynchronous programming in JavaScript has evolved rapidly in recent years. Due to this change, handling asynchronous tasks in Express, such as getting information from a database, can be achieved in a variety of ways. Let's take a look at three approaches you can use to handle asynchronous operations in Express: callbacks, promises, and async/await.

Chevron 6 steps
  • Asynchronous Programming with Express

    2:39

  • Using Callbacks

    5:00

  • Refactor Using Promises

    5:54

  • Refactor Using Async/Await

    3:34

  • Reduce Error Handling Code When Using Async/Await

    3:35

  • Async Code in Express Quiz

    6 questions

Related Courses

Reviews

Start your review of Asynchronous Code in Express Course

Never Stop Learning!

Get personalized course recommendations, track subjects and courses with reminders, and more.

Sign up for free