started the for loop

var i = 0 by default. less than the length of this array. length
meaning the number of items inside the array