LearnPath

javascript · beginner · ~10 min

Sum of evens

Write `sumEvens(nums)` returning the sum of only the even numbers.

javascript editor · loading…

Output

Run to see output.