logo
logo

Filter Even Numbers using filter()

Filter Even Numbers using filter()

Write a function
filterEvenNumbers
that takes an array of numbers as input, and returns a new array that only contains the even numbers using the
filter()
method.
Console
Submit
Solution
00:00