Skip to main content
✏️ Code CompletionJS JavaScript Medium+20 XP

Array Method Chain

Complete the chain to get names of adults.

✏️ Fill in the blank
const adults = people
  .filter(p => p.age >= 18)
  .___((p) => p.name);

✏️ Type the missing code: