Quiz: find or filter?

What does this program print?

const ages = [12, 17, 8, 15];
console.log(ages.find((age) => age > 13));
console.log(ages.filter((age) => age > 13));
console.log(ages.some((age) => age > 20));

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

Back

4/10

Next