Typescript Es6 Javascript How To Use In Loop Array
👤 By Typescript | 📆
// 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"
}