const data_get = document.getElementById("data_get"); fetch("./public/projects.json") .then((x) => x.json()) .then((projects) => { data_get.innerHTML = projects.reduce( (html, project) => html + `

${project.name}

${new Date(project.date).toLocaleDateString()}

${project.description.reduce( (html, descfragment) => html + `

${descfragment}

`, "" )}

or

`, "" ); });