how to display api data in html code example
Example: how to display api data in html
const p = document.getElementById("myPelement")
fetch('http://example.com/movies.json')
.then((response) => {
return response.json();
})
.then((data) => {
p.innerText = data
});