Guided Practice 5: Use A “For” Loop
Now, we’re introducing a “for” loop. This loop runs a pre-determined number of times. The “for” loop initiates the counter variable, determines how many times the loop will run, and generally increments or decrements the counter variable. In this example, the counter is initialized to 1, and it increments by one each time the loop runs. The loop rings the value of the counter […]