Disclaimer: This material was taught in The Modern Javascript Bootcamp Course by Colt Steele and Stephen Grider, which I highly recommend. In JavaScript, if you are iterating, you are most likely using a for loop. More often than not, you would start with the first index, 0, and iterate through…