All challenges
Multiple ChoiceBeginner 30s

Array Destructuring

[a,b]=[1,2] assigns:
Options
  1. 1a=[1,2],b=undefined
  2. 2a=1,b=2
  3. 3a=2,b=1
  4. 4Error

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