Awesome work getting the hang of the
async...await syntax! Let’s review what you’ve learned:
asyncfunction we use the
awaitoperator to pause execution of our function until an asynchronous action completes and the awaited promise is no longer pending .
awaitreturns the resolved value of the awaited promise.
awaitstatements to produce code that reads like synchronous code.
try...catchstatements within our
asyncfunctions for error handling.
asyncfunctions that allow asynchronous actions to happen in concurrently whenever possible.