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

Code Example 1

// foreach - values
for { let item of itemList} {
 
}

// foreach - keys
for { let key in itemList} {
 
}

// for
for {let i = 0; i < 10; _i++}{
  
}

Learn ReactJs, React Native from akashmittal.com