Skip to content

Instantly share code, notes, and snippets.

@taniarascia
Last active February 13, 2024 07:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taniarascia/6c816fb4929cff45b719969adac2261e to your computer and use it in GitHub Desktop.
Save taniarascia/6c816fb4929cff45b719969adac2261e to your computer and use it in GitHub Desktop.
Fetch json
fetch('./js/data.json').then(response => {
return response.json();
}).then(data => {
console.log(data);
}).catch(err => {});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment