how to run a for loop on an array in javascript 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);
}