The fetch function in JavaScript returns a Promise that resolves to the ________ of the request, whether it is successful or not.

  • a) Response Object
  • b) JSON Data
  • c) Status Code
  • d) URL
The fetch function in JavaScript returns a Promise that resolves to the Response object of the request, whether it's successful or not. This Response object contains information about the response, including headers and the response body, and allows you to handle the response appropriately.
Add your answer
Loading...

Leave a comment

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