Sum of even numbers
Write sumEvens(numbers) that adds up only the even numbers in the array.
Tests
0 of 4 passsumEvens([1, 2, 3, 4])→6sumEvens([7, 9])→0sumEvens([])→0sumEvens([10, -2, 5])→8
Tutor
The tutor guides you toward the answer instead of handing it over. It uses your own Claude usage.
Nothing printed. Use console.log to inspect values.