Sign In
Filter Even Numbers using filter()
Beginner
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.
Click to go back
Click to go forward
Refresh preview
Console
Submit
Solution
00:00
Back to Exercises