for loop in typescript and add to array code example
Example: create an array for looping typescript
loopTimes: number[] = Array(31);
for (let x = 0; x < loopTimes.length; x++) {
console.log('Index/Loop No: ', [x]);
// Do something here...
}