Practice · 1 of 6
Diagnose 1: the boundary crash
CHALLENGE
Difficulty: intermediate+25 XP
Classify the error (which taxonomy class?), then repair lastChar so it returns the LAST character's char code. Empty input is not part of this task's contract (s is non-empty).
Press Submit to check your solution.
Back to lesson: Practice: Diagnosis gauntlet