...

/

Summary: Async Functions and Await Expressions

Summary: Async Functions and Await Expressions

Get a brief summary of async functions and await expressions.

Asynchronous functions

Async functions allow us to use promises without manually assigning fulfillment and rejection handlers. We can turn any function into an async function by adding the async keyword before the function definition.

The return value of an async function is always a promise. If we return a promise from the ...