Created
January 30, 2019 06:12
-
-
Save aslamanver/cbb0d580a057295dd7ecaa606d205efc to your computer and use it in GitHub Desktop.
Reqres.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var xhr = new XMLHttpRequest(); | |
xhr.open("GET", "https://reqres.in/api/products/3", true); | |
xhr.onload = function(){ | |
console.log(xhr.responseText); | |
}; | |
xhr.send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment