Multiple ChoiceBeginner 30s
Property Access (MCQ)
Choose the best answer for: property access ways
Options
- 1Dot notation works with numbers but not with string keys
- 2obj->prop accesses properties with the arrow operator
- 3obj.prop and obj['prop'] both access properties
- 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.