All challenges
Multiple ChoiceBeginner 30s

Property Access (MCQ)

Choose the best answer for: property access ways
Options
  1. 1Dot notation works with numbers but not with string keys
  2. 2obj->prop accesses properties with the arrow operator
  3. 3obj.prop and obj['prop'] both access properties
  4. 4obj[prop] is always invalid and throws a TypeError

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