Last active
June 3, 2020 01:57
-
-
Save harrisonmalone/515ea4065fd606725329aa2e0d63f859 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 getUser = async () => { | |
const response = await fetch('https://randomuser.me/api/'); | |
const data = await response.json(); | |
return data | |
} | |
const getPokemon = async () => { | |
const response = await fetch('https://pokeapi.co/api/v2/pokemon'); | |
const data = await response.json(); | |
return data | |
} | |
const accessData = () => { | |
// TODO use the APIs above to generate 3 random users and 1 random pokemon (accessed by index) | |
// use Promise.all to get back the data | |
// you can console.log the array with populated data to complete this challenge | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment