Why is this code not working?
function sendHttprequest (uRL)
{
with ( new XMLHttpRequest ()){
open('get' ,uRL)
send ( void 0)
console . log ("RESPONSETEXT:",responseText);;
}
}
It's supposed to make an HTTPS get request to the specified url. Plz help!
i got this code from freecodecamp