Lesson 19 of 35 · +110 xp
Array.filter
Keep matches.
Explained simply
Your task
Declare const evens = nums.filter(n => n % 2 === 0);
Click 'Run code' to execute your code in a real sandbox.
Lesson 19 of 35 · +110 xp
Keep matches.
Declare const evens = nums.filter(n => n % 2 === 0);
Click 'Run code' to execute your code in a real sandbox.