for(const js code example
Example: for of loop in es6
let colors = ['Red', 'Blue', 'Green'];
for (let color of colors){
console.log(color);
}
let colors = ['Red', 'Blue', 'Green'];
for (let color of colors){
console.log(color);
}