Skip to content

Instantly share code, notes, and snippets.

@justsml
Last active December 21, 2022 06:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save justsml/de941bd61cc86e30beedbb8a3a646f81 to your computer and use it in GitHub Desktop.
Save justsml/de941bd61cc86e30beedbb8a3a646f81 to your computer and use it in GitHub Desktop.
fetch('https://api.github.com/orgs/nodejs')
.then(response => response.json())
.then(data => {
console.log(data) // result from `response.json()` above
})
.catch(error => console.error(error))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment