Lesson 19 of 35 · +110 xp

Array.filter

Keep matches.

Explained simply

Your task

Declare const evens = nums.filter(n => n % 2 === 0);

filter.js
▶ Output (javascript)
Click 'Run code' to execute your code in a real sandbox.
← Back