Skip to content

Instantly share code, notes, and snippets.

Last active July 22, 2022 16:29
What would you like to do?
Fetch a GitHub user's info using the REST API
const username = "elijahjcobb";
.then(res => res.json())
.then(gist => {
const {name, company, location} = gist;
console.log(`${name} works at ${company} in ${location}.`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment