1const array1 = ['a', 'b', 'c'];
2
3for (const element of array1) {
4 console.log(element);
5}
6
7// expected output: "a"
8// expected output: "b"
9// expected output: "c"
1let colors = ['Red', 'Blue', 'Green'];
2for (let color of colors){
3 console.log(color);
4}