Practice · 3 of 4
Fix: last-index search
CHALLENGE
Difficulty: advanced+25 XP
The method should return the **last** index where target appears, or -1. It sometimes returns -1 even when the target is present late in the array. Find and fix the bug.
Press Submit to check your solution.
Back to lesson: Practice: Debug gauntlet: one bug each