async function getData(url) { const response = await fetch(url); return response.json(); } const data = await getData(url); console.log({ data })