An async function can contain an await expression that pauses the execution of the async function and waits for the passed _______ to resolve or reject.

  • callback
  • timeout
  • Promise
  • generator
An async function can contain an await expression that pauses the execution of the async function and waits for the passed Promise to resolve or reject. This allows for more readable and sequential asynchronous code, making it easier to work with asynchronous operations.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *