This forum is now read-only. Please use our new forums! Go to forums

0 points
about 11 years

Requests Help

For some reason I can’t get it to work. Any help would be great.

`// Add your code below this line! xhr = new XMLHttpRequest(); xhr.open("GET", "http://www.codecademy.com/", false);

// Add your code above this line!

console.log(xhr.status); console.log(xhr.statusText);`

Answer 50edb8e67df128f8f3000697

1 vote

Permalink

Did you also include xhr.send(); after calling the open method?

points
Submitted by David Ocampo
about 11 years