Chapter 18
Promise, async/await
Promises are now used by most modern APIs. It is therefore important to understand how they work and to know how to use them to optimize the code. In this chapter, we'll define in detail what promises are and how to use them in asynchronous operations.