how to loop through array of numbers in javascript using for of code example
Example: javascript loop through array
var colors = ["red","blue","green"];
colors.forEach(function(color) {
console.log(color);
});
var colors = ["red","blue","green"];
colors.forEach(function(color) {
console.log(color);
});