For Loops

If we wanted to do a repetitive task over a multitude of times, we should create a for loop. To start, we created a string and a name.

Next, we need to set up our for loop. To do this, we need to set the increment start value (0), the total amount we want to count up to (_totalNames), and the value we want to incriment by (i++).

Finally, let’s tell it to add the name 100 times and then end with a debug log.