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