What does the async keyword do when placed before a function declaration?

JavaScript Associate Easy

JavaScript Associate — Easy

What does the async keyword do when placed before a function declaration?

Key points

  • async keyword guarantees a Promise return
  • Simplifies handling asynchronous operations
  • Does not execute the function in a separate thread
  • Does not prevent the function from blocking the event loop permanently

Ready to go further?

Related questions