fetch api for large applications 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)
}