JavaScript AJAX Basics (retiring) Programming AJAX Parsing JSON Data

Mariela Napoles
Mariela Napoles
11,013 Points

Understanding '.responseText'

Im having a hard time understanding '.responseText'. Can someone explain what value does it return in general?Ive been trying to read from MDN and related results from a google search but I cant understand. Thank you so much.

1 Answer

Steven Parker
Steven Parker
173,682 Points

The responseText is just a string with the response info in it, human-readable and suitable for display.

A little experimentation can sometimes be more valuable than a lot of documentation, try logging it to the console and do a few test operations.