Skip to main content

Practice · 4 of 5

Second diagnosis

CHALLENGE
Difficulty: intermediate+25 XP

sumSkipNeg must return the sum of the **non-negative** elements only. Trace {3, -1, 4} against the contract, find the drift, and repair it.

Back to lesson: Practice: Bootcamp drills