All challenges
Multiple ChoiceIntermediate 30s

Array flat

Choose the best answer for: flat method
Options
  1. 1arr.flat(depth) sorts the array's elements in ascending order
  2. 2arr.flat(depth) flattens nested arrays to given depth
  3. 3arr.flat(depth) is a string method that trims array whitespace
  4. 4arr.flat(depth) removes duplicate elements from the array

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