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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Unhandled rejection error
Explanation: The error must be caught or it results in an unhandled rejection.
Explanation by: Mr. Dubey
The error must be caught or it results in an unhandled rejection.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
67
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate