// Example: Simple fetch and log async function fetchJson(url) { try { const res = await fetch(url); const data = await res.json(); console.log(data); } catch(e) { console.error('Fetch failed', e); } }