All challenges
Multiple ChoiceBeginner 30s

Array shift/unshift

Choose the best answer for: queue operations
Options
  1. 1unshift removes an element from the front of the array
  2. 2shift adds an element to the end and returns it
  3. 3shift and pop both remove and return the last element
  4. 4unshift adds to front, shift removes from front

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