← Back to JavaScript exercises

42. Callbacks Promises Async Await

Result appears here
button.onclick=()=>fetch("https://jsonplaceholder.typicode.com/todos/1").then(r=>r.json()).then(x=>output.textContent=x.title);