When a function expression is made async, it returns a ______.

  • Promise
  • Callback
  • Generator
  • Class
When a function expression is marked as "async," it returns a Promise. An async function can pause its execution and wait for the Promise to resolve or reject, which is helpful for handling asynchronous operations elegantly.
Add your answer
Loading...

Leave a comment

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