When using Promises with AJAX, handling network errors is done through the ______ method of the Fetch API.

  • error
  • fail
  • catch
  • reject
When using Promises with AJAX, handling network errors is done through the catch method of the Fetch API. The catch block allows you to handle any errors that occurred during the AJAX request.
Add your answer
Loading...

Leave a comment

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