Skip to main content

Practice · 4 of 6

Diagnose 6: the missing edge case

CHALLENGE
Difficulty: intermediate+25 XP

Classify the error, then repair firstChar so it returns the first character's code, or -1 for the EMPTY string.

Back to lesson: Practice: Diagnosis gauntlet