read values from array using for loop type script code example
Example 1: typescript foreach
let num = [7, 8, 9];
num.forEach(function (value) {
console.log(value);
});
Example 2: angular 7 for loop index ts
for (let i = 0; i < 3; i++) {
console.log ("Block statement execution no." + i);
}