For Each Loops
Lesson 26Author : GOUP
Last Updated : September, 2020
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>");
});