What does the responseType property of an XMLHttpRequest object determine?

  • The data type of the request
  • The request method
  • The URL of the request
  • The timeout for the request
The responseType property of an XMLHttpRequest object determines the expected data type of the response. It allows you to specify whether you expect the response to be in text, JSON, XML, or other formats. Setting this property correctly is important for parsing and handling the response data properly in your JavaScript code.
Add your answer
Loading...

Leave a comment

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