I cant get the program to loop

Make the following change:


int ledArray = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11};

. . .

for (int i = 0; i < 10; i++)  // <———<<<<<   <= to just <
{
digitalWrite(ledArray[i], HIGH);
delay(delayTime);
}