I have a working javascript code which fetch api data. I don't know how to show the data in html code and I need help with that. Here is the code:
<script>
fetch("https://v3.football.api-sports.io/{endpoint}", {
"method": "GET",
"headers": {
"x-rapidapi-host": "v3.football.api-sports.io",
"x-rapidapi-key": "7353701748e805612af548372b8dc704"
}
})
.then(response => {
console.log(response);
})
.catch(err => {
console.log(err);
});
'
</script>