What is the significance of the async keyword in JavaScript?

  • It defines a function that returns a Promise, allowing asynchronous operations.
  • It makes a function execute synchronously.
  • It is used to declare a variable as asynchronous.
  • It enables the use of callbacks.
The async keyword is used to define a function as asynchronous, meaning it returns a Promise. This allows you to perform non-blocking operations, making JavaScript code more efficient.
Add your answer
Loading...

Leave a comment

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