All challenges
Multiple ChoiceBeginner 30s

Array map

Choose the best answer for: map method
Options
  1. 1arr.map(fn) filters the array and keeps the matching elements
  2. 2arr.map(fn) is asynchronous and returns a pending Promise value
  3. 3arr.map(fn) returns a new array with fn applied to each element
  4. 4arr.map(fn) mutates the original array and returns it in place

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle