
A for loop repeats a block of code a set number of times. It has three parts: initialization (let i = 0), condition (i < 10), and increment (i++). The loop runs while the condition is true. i++ is shorthand for i = i + 1. For loops are the most common way to iterate over arrays.
Reference:
TaskLoco™ — The Sticky Note GOAT