XMLHttpRequest object to communicate with servers.
It can send and receive information in various formats, including JSON, XML, HTML, and text files.AJAX’s most appealing characteristic is its "asynchronous" nature, which means it can communicate with the server, exchange data, and update the page without having to refresh the page.
Source: Mozilla Developer Network Docs
Below we will send a simple request to a testing platform: https://resttesttest.com/ and in the Demo area on the right we can see it in action.
<!-- A div to display the response in later on, just to see it --> <pre><div id="response"></div></pre> <!-- Display an item from the response object --> <div id="ip"></div>