Javascript Exemplo de foreach loop
var colors = ["red", "blue", "green"];
colors.forEach(function(color) {
console.log(color);
});
Grepper
var colors = ["red", "blue", "green"];
colors.forEach(function(color) {
console.log(color);
});