durch Array JS iterieren
var arr = ["f", "o", "o", "b", "a", "r"];
for(var i in arr){
console.log(arr[i]);
}
FlashingMustard
var arr = ["f", "o", "o", "b", "a", "r"];
for(var i in arr){
console.log(arr[i]);
}
let exampleArray = [1,2,3,4,5]; // The array to be looped over
// Using a for loop
for(let i = 0; i < exampleArray.length; i++) {
console.log(exampleArray[i]); // 1 2 3 4 5
}
const array1 = ['a', 'b', 'c'];
array1.forEach(element => console.log(element));
for(let i =0; i < arr.length; i++) {
console.log(arr[i])
}
const beatles = ["paul", "john", "ringo", "george"];
beatles.forEach((beatle) => {
console.log(beatle.toUpperCase());
});
var array = ['Volvo','Bmw','etc'];
for(var seeArray of array){
console.log(seeArray);
}