I'm having trouble understanding why this for loop is text += cars[i]...
and not just text = cars [i]...
Here is the full script
var cars = ["BMW", "Volvo", "Saab", "Ford"];
var i, len, text;
for (i = 0, len = cars.length, text = ""; i < len; i++) {
text += cars[i] + "<br>";
}
document.getElementById("demo").innerHTML = text;
<p id="demo"></p>