Traversing an Array
// print all names in an array
function printNames(console) {
var names = ["Ben", "Jafar", "Matt", "Priya", "Brian"],
counter;
for (counter = 0; counter < names.length; counter++) {
console.log(names[counter]);
}
}
// Did we need to specify the order in which the names were printed?
// Why or why not?INFO