✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Was passiert bei folgendem Code?
async function loadData() { const res = await fetch("https://api.example.com/data"); const json = await res.json(); return json;}
loadData() .then((d) => console.log("OK", d)) .catch((e) => console.log("ERR", e));