// ON THIS EXAMPLE, YOU WILL USE THE INDEX TO GET THE VALUE
// THIS IS THE SAME AS USING THE FOR LOOP IN PHP


let colors = ["red", "blue","green"];
for(let index in colors){
    console.log(colors[index]); //"red", "blue","green"
}