16/19 help


this is my code:

// Add your code below this line!
variable_name = new XMLHttpRequest();console.log(xhr.status);
variable_name.open("GET", "URL", false);
xhr = variable_name

// Add your code above this line!

it says 0 but it says I have to try again.
I need help so tell me your code or tell me how to do it.
super hard!!!

:confounded: :grimacing: :rage: :hushed: :disappointed_relieved: :frowning:


variable_name should be xhr
var xhr = new XMLHttpRequest();

you don't need to log anything it's already done below the lines

You want to open xhr, not variable_name, and the url should be an actual url, in this case "https://www.codecademy.com/"

you should have
var xhr = new XMLHttpRequest();
xhr.open("GET", "https://www.codecademy.com", false);