I'm trying to run a piece of code every 7th iteration inside my for loop.
How would I do this?
for (let i = 1; i < 101; i++) {
  if (i == 7) {
    console.log('7 iterations have passed')
  }
  console.log(i)
}Currently it only does it once, I'm not sure what's the clean way of checking this.
 
     
    