Using _______ in front of a Promise-based function call makes JavaScript wait until that Promise settles and returns its result.

  • Wait
  • Hold
  • Async
  • Await
The keyword await is used in front of a Promise-based function call to make JavaScript wait for that promise to resolve or reject before proceeding with the code execution. It allows for writing asynchronous code in a more synchronous-like manner.
Add your answer
Loading...

Leave a comment

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