how ot use fetch to grab a response from api code example
Example: work with fetches in js
function yourfunction() {
return fetch(API)
.then(response => response.json())
.then(data => data.content)
}
function yourfunction() {
return fetch(API)
.then(response => response.json())
.then(data => data.content)
}