-
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
Overview
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
-