Practice · 6 of 6
Fix the walked-off end
CHALLENGE
Difficulty: intermediate+25 XP
sumEvenIndexes should add arr[0] + arr[2] + ... but throws on any input. Diagnose the loop bound, then repair it — one character class of mistake.
Press Submit to check your solution.
Back to lesson: Practice: Array lab