var xhr = new XMLHttpRequest(); xhr.open("GET", "https://www.codecademy.com/doesntexistatallnopehaha", false); xhr.send(); console.log(xhr.status);
Varying the GET link with HTTP/HTTPS and other obviously bad links all return variations on:
NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www.codecademy.com/doesntexistatallnopehaha'.
However, the pages return 404 errors when I navigate to them manually. I've searched the forums but can't find any other ideas. Help?
EDIT: I was able to pass when I switched from the track JS for YouTube API track to the JS for SoundCloud API track, even though the exercises and my input were identical.