Await Expressions and Promises
Discover how await expressions work with multiple promises.
We'll cover the following
Using await
expressions with multiple promises
Even though await
expressions operate on a single promise, we can take advantage of the built-in promise methods to effectively operate on multiple promises. For example, if we’d like to wait for every promise in an array to be fulfilled, we can use the Promise.all()
method with an await
:
Get hands-on with 1400+ tech skills courses.