Iteracja przez tablicę JS
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]);
}
// This is a way to loop threw a 2 dimensional array.
// If the array has even more dimension you have to use recurrsion.
const Arrays = [["Array 1"], ["Array 2"]];
Arrays.forEach((array, index) => {
console.log(index);
array.forEach((item, index) => {
console.log(item);
});
});
var array = ['Volvo','Bmw','etc'];
for(var seeArray of array){
console.log(seeArray);
}