Skip to main content

Practice · 1 of 4

Fix: even-index sum

CHALLENGE
Difficulty: advanced+25 XP

The method should sum elements at **even indexes** (0, 2, 4, …). It fails. Find the bug, fix it in place, and keep the method signature. The buggy line is visible in the starter code.

Back to lesson: Practice: Debug gauntlet: one bug each