43. Fetch API
button.onclick=()=>fetch("https://jsonplaceholder.typicode.com/users/1").then(r=>r.json()).then(x=>output.textContent=x.name);← Back to JavaScript exercises
button.onclick=()=>fetch("https://jsonplaceholder.typicode.com/users/1").then(r=>r.json()).then(x=>output.textContent=x.name);