The _______ method is used to handle errors in Promises.

  • .then()
  • .catch()
  • .resolve()
  • .reject()
The correct method to handle errors in Promises is the .catch() method. When a Promise is rejected, the .catch() method is called with the reason for the rejection, allowing you to handle and manage errors in your asynchronous code effectively.
Add your answer
Loading...

Leave a comment

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