generate functionMon, 27 Mar 2023

leer API de comics y mostrarlas en el html

fetch('https://xkcd.com/614/info.0.json') .then(res => res.json()) .then(data => { const img = document.createElement('img') img.src = data.img document.body.appendChild(img) })

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant