Iterating through an array
We can use a for loop. This is an example:
var PERSONlist = ["Fred", "Mary", "John"];
var H = '';
for (var i=0; i < PERSONlist.length; i++){
H += "<li>" + PERSONlist[i] + "</li>""
}
In that example we are concatenating strings together to make a list of people.