10/19 not working


#1

I did exactly what it told me and it didn't work.
code:

var xhr = new XMLHttpRequest();
xhr.open("GET", "http://www.codecademy.com/doesnt_exist", false);
xhr.send();
// Add your code below!
console.log(xhr.status);

error:

NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://www.codecademy.com/doesnt_exist'.

Please help


#2

Change "http://www.codecademy.com/doesnt_exist" to "https://www.codecademy.com/doesnt_exist"


#3

The Url actually doesn't exist. As error types were discussed in the chapter, seems like such URL was given to show an error.