showing results for - "how to display api data in html"
Becca
04 Aug 2016
1const p = document.getElementById("myPelement")
2fetch('http://example.com/movies.json')
3    .then((response) => {
4        return response.json();
5    })
6    .then((data) => {
7        p.innerText = data
8    });