• Home
  • Videos
  • How do I return a result from an asynchronous function?

How do I return a result from an asynchronous function?

We look at how returning an asynchronous value result from a function call in JavaScript can be difficult, and options that are available to return these type of values.

Corrections

The final call should be “await fooAsync()” instead of “await fooPromise()”, because our fooAsync was the async function.