Q:

mdn foreach

var colors = ["red", "blue", "green"];
colors.forEach(function(color) {
    console.log(color);
});
13
arr.forEach(callback(currentValue [, index [, array]])[, thisArg])
1

New to Communities?

Join the community