Skip to content
Quiz · Array methods · lesson 3 of 12

Quiz — filter, then map

What does the program print?

JavaScript
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.

Sign in another way