MCPcopy
hub / github.com/mihail911/modern-software-dev-assignments / fetchJSON

Function fetchJSON

week7/frontend/app.js:1–5  ·  view source on GitHub ↗
(url, options)

Source from the content-addressed store, hash-verified

1async function fetchJSON(url, options) {
2 const res = await fetch(url, options);
3 if (!res.ok) throw new Error(await res.text());
4 return res.json();
5}
6
7async function loadNotes(params = {}) {
8 const list = document.getElementById('notes');

Callers 3

loadNotesFunction · 0.70
loadActionsFunction · 0.70
app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected