Skip to content

Instantly share code, notes, and snippets.

@harrisonmalone
Last active June 3, 2020 01:57
Show Gist options
  • Save harrisonmalone/515ea4065fd606725329aa2e0d63f859 to your computer and use it in GitHub Desktop.
Save harrisonmalone/515ea4065fd606725329aa2e0d63f859 to your computer and use it in GitHub Desktop.
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