Skip to content

Instantly share code, notes, and snippets.

@justsml
Last active December 21, 2022 06:22
Show Gist options
  • 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