Back to Multiple Choice Quiz
Filter Even Numbers
JavaScript quiz · Question 15How can you obtain an array of only the even numbers from [1, 2, 3, 4, 5, 6]?
Code
1const numbers = [1, 2, 3, 4, 5, 6];
How can you obtain an array of only the even numbers from [1, 2, 3, 4, 5, 6]?
1const numbers = [1, 2, 3, 4, 5, 6];