← previousnext →
Problem
Return how many even integers are in the array.
Examples
countEvens([2, 4, 1, 3]) -> 2countEvens([1, 3, 5]) -> 0countEvens([0, 0, 2]) -> 3
Return how many even integers are in the array.
countEvens([2, 4, 1, 3]) -> 2countEvens([1, 3, 5]) -> 0countEvens([0, 0, 2]) -> 3