JavaScript -Schleife und Array
var colors = ["red","blue","green"];
for (var i = 0; i < colors.length; i++) {
console.log(colors[i]);
}
Grepper
var colors = ["red","blue","green"];
for (var i = 0; i < colors.length; i++) {
console.log(colors[i]);
}
let array = ['Item 1', 'Item 2', 'Item 3'];
for (let item of array) {
console.log(item);
}