For Loops
Lesson 23Author : 🦒
Last Updated : October, 2017
Video Code
for(var i = 0; i < 5; i++){
document.write(i);
}
var luckyNums = [4, 8, 15, 16, 23, 42];
luckyNums.forEach(function(luckyNum){
document.write(luckyNum + "<br>");
});