Skip to main content

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.

Back to lesson: Practice: Array lab