AK
Size: a a a
AK
IS
AK
AK
AK
AS
IS
AS
AK
IS
AK
Д
ВЛ
D
AP
AP
UT
OM
D
async function loadPosts(){
const response = await fetch()...
return response.json().data
}
function renderPosts(posts){
const html = posts.map(post => `<h1>${post.title}</h1><p>${post.text}</p>`).join('')
document.body.innerHTML = html;
}
loadPosts().then(renderPosts)
UT
async function loadPosts(){
const response = await fetch()...
return response.json().data
}
function renderPosts(posts){
const html = posts.map(post => `<h1>${post.title}</h1><p>${post.text}</p>`).join('')
document.body.innerHTML = html;
}
loadPosts().then(renderPosts)