A

Admin • 828.03K Points
Coach

Q. What is the purpose of async keyword in JavaScript?

  • (A) To define a function that returns a Promise
  • (B) To pause code execution
  • (C) To define synchronous code
  • (D) To create event loops
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
An async function always returns a Promise.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.