Created
May 12, 2018 14:33
-
-
Save JackHowa/deb48001131dbef7e767cf7217987764 to your computer and use it in GitHub Desktop.
SlateblueEvilProducts created by JackHowa - https://repl.it/@JackHowa/SlateblueEvilProducts
This file contains hidden or 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 axios = require('axios'); | |
const githubURL = 'https://api.github.com/users/'; | |
const jackGithubUrl = githubURL + 'jackhowa'; | |
const mattGithubUrl = githubURL + 'mattzuzolo'; | |
getDetails(); | |
async function getDetails() { | |
const jackPromise = axios.get(jackGithubUrl); | |
const mattPromise = axios.get(mattGithubUrl); | |
const [jack, matt] = await Promise.all([jackPromise, mattPromise]); | |
console.log(jack.data); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment