.catch()

Term side of the Card
Topic: Promise
Unit title: .catch()
Categories: Method
Explanation side of the Card

Explanation: The method used with promises to catch errors that occur during asynchronous operations. It allows defining what should happen if the promise is rejected, making it easier to handle mistakes or issues in the code.

Browser compatibility:
  • The chrome browser supports this feature starting from version 32
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 29
  • The safari browser supports this feature starting from version 8
Availability: