CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

Filter Even Numbers

JavaScript quiz · Question 15
easyLoops

How 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];