for(itemof items) 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);
}