(Choose 1 answer)
Choose the correct information about the use of XMLHttpRequest (XHR) object to call the Web API.
A. var xhttp = new XMLHttpRequest();
xhttp.open("GET", "
https://localhost:44324/api/ApiControllerName", true);xhttp.send();
B. var xhttp = new XMLHttpRequest();
xhttp.open("POST", "
https://localhost:44324/api/ApiControllerName", true);
xhttp.sendpost();
C. var xhttp = new XMLHttpRequest();
xhttp.openurl("GET", "
https://localhost:44324/api/ApiControllerName", true);xhttp.send();
D. var xhttp = new XMLHttpRequest();
xhttp.openurl("GET", "
https://localhost:44324/api/ApiControllerName", true);xhttp.sendrequest();
Eatt 8