In this section we’ll talk about Callbacks, Promises, Async/Await.
What is asynchronous code?
Suppose your program needs to perform some kind of action.
This action could take multiple seconds to perform. You don’t want to halt your entire program to wait for its completion, right?
We’ll introduce this topic in the same historical order of appearance of the ways we can do it.
We’ll first learn callbacks, then we’ll dive into promises and async functions.
Lessons this unit: