Check out example codes for "angular 7 for loop index ts". It will help you in understanding the concepts better.

Code Example 1

for (let i = 0; i < 3; i++) {
  console.log ("Block statement execution no." + i);
}

Learn ReactJs, React Native from akashmittal.com