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

0 points
Submitted by admin6
almost 9 years

NEED HELP WITH 2/6!

What is the final code? I tried for hours! CAN’T FIGURE IT OUT!

Answer 55bf486fe39efe9782000106

1 vote

Permalink

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

// Add your code above this line!

console.log(xhr.status);
console.log(xhr.statusText);
points
Submitted by Vikrant Negi
over 8 years

2 comments

Danny Ortega over 8 years

took me awhile but it has to be https might wanna send in to someone. Didnt pass without http

DAGIROV Djamal over 8 years

why httpS and not http ?

Answer 5616735195e37832360001d9

0 votes

Permalink

try this:

xhr.open(“GET”, “https://www.codecademy.com/“, false);

use HTTPS

points
Submitted by Hernán
over 8 years