Q. Which method is used to handle errors in Promises?

  • (A) catch()
  • (B) then()
  • (C) error()
  • (D) fail()
πŸ’¬ Discuss
βœ… Correct Answer: (A) catch()
Explanation: catch() handles Promise rejections or errors.
Explanation by: Mr. Dubey
catch() handles Promise rejections or errors.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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