Filter Even Numbers

Array Methods ยท easy

Implement `filterEvens(arr)` that returns a new array containing only the even numbers from `arr`.

Hints
  • Use the modulo operator `%` to test for evenness.

Learning resources

Loading...

Run your code to see results.