The array gets console logged fine, but only the last person of the array is inserted in the HTML <div>
.
Why or what is the failure?
document.getElementById("team").addEventListener("click", show)
function show(){
document.getElementById("fritz").style.display = "block";
document.getElementById("bill").style.display = "block";
document.getElementById("fran").style.display = "block";
for (i = 0; i < people.length; i++) {
var persoxn = people[i].printinfos()
document.getElementById('insert_text').innerHTML = persoxn
console.log(persoxn)
}
}