Last active
November 24, 2017 18:52
-
-
Save maecapozzi/d3d1a1e9b2c47ddc5d157901369a35ce to your computer and use it in GitHub Desktop.
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
const makeHTTPRequest = (username) => { | |
const url = 'https://api.github.com/users/' + username | |
fetch(url) | |
.then(response => response.json()) | |
.then(response => console.log(response)) | |
} | |
makeHTTPRequest('maecapozzi') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment