Problem

Return how many even integers are in the array.

Examples

  • countEvens([2, 4, 1, 3]) -> 2
  • countEvens([1, 3, 5]) -> 0
  • countEvens([0, 0, 2]) -> 3
Compile and test (Ctrl+Enter)