I'm looking for a way to list each firstname from the below loop. Currently it loops through each firstname stoping at the last which is Jack and only displaying that. I want it to display all of them like: John, Jane, Joe
var person = [{firstName:"John"}, {firstName:"Jane"}, {firstName:"Jack"}]; for (var i = 0; i < person.length; i++) { document.getElementById("demo").innerHTML = person[i].firstName; } Can anyone advise on how I would do this?