iterating through items in js array code example
Example: loop through javascript array
let colors = ['red', 'green', 'blue'];
for (const color of colors){
console.log(color);
}
let colors = ['red', 'green', 'blue'];
for (const color of colors){
console.log(color);
}