Typescript Es6 Javascript How To Use Foreach Loop Array
👤 By Typescript | 📆
// ON THIS EXAMPMLE, YOU USE THE NAME OF THE PROPERTY
// THIS IS THE SAME AS USING THE FOREACH LOOP IN PHP
let colors = ["red", "blue","green"];
for(let color of colors){ console.log(color); // "red", "blue","green"
}