Quiz · Array methods · lesson 3 of 12
Quiz — filter, then map
What does the program print?
const nums = [1, 2, 3, 4];
const result = nums.filter((n) => n % 2 === 0).map((n) => n * 10);
console.log(result.join(" "));Subscribe to take the course
The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.