for loop

by Ken Sprague

JavaScript

var names = ['Batman', 'Spiderman', 'Conan', 'Thor', 'Deadpool', 'Superman'];
var comicNames = names.length

//intitalize; test; increment



for(var i = 0; i < comicNames; i++) {
 		console.log(names[i]);
}