In a Promise, if an error is not caught, it leads to a(n) ________.

  • Rejection
  • Resolution
  • Exception
  • Completion
In a Promise, when an error occurs and is not caught, the Promise is rejected. This can lead to unhandled promise rejections, causing issues in the application. Understanding how to handle promise rejections is crucial in asynchronous programming with Promises.
Add your answer
Loading...

Leave a comment

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