In this example, we have omitted the last parameter, and incremented the counter variable inside the loop.
Click the button to loop through the indices of an array, in ascending order.