Practice · 2 of 4
Spec: checksum
CHALLENGE
Difficulty: beginner+25 XP
Implement to spec: validChecksum(String code) returns true exactly when the sum of the DIGIT VALUES is divisible by 10. Precondition guarantees digits only — no validation required.
Press Submit to check your solution.
Back to lesson: Practice: FRQ-style reps