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]);
}
by Ken Sprague
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]);
}