looping through an array of arrays javascript with some and every code example
Example 1: iterate through list javascript
const array = ["hello", "world"];
for (item of array) {
//DO THIS
}
Example 2: loop through javascript array
let colors = ['red', 'green', 'blue'];
for (const color of colors){
console.log(color);
}