es6 useful loop methods 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);
}