Help with trouble shooting

John's code uses an array const byte ledPins[10] = {11, 10, 9, 8, 7, 6, 5, 4, 3, 2}; that provides a "list" of all the led pins.

The for-loop iterates through this "list" and for every value in that "list", it sets the pinMode to OUTPUT.