A

Admin • 802.91K Points
Coach

Q. What will be the result of await Promise.reject('error') in async function?

  • (A) Unhandled rejection error
  • (B) Syntax error
  • (C) Code continues
  • (D) undefined
  • Correct Answer - Option(A)
  • Views: 3
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
The error must be caught or it results in an unhandled rejection.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.