Multiple ChoiceIntermediate 30s
Getters and Setters
Choose the best answer for: get/set syntax
Options
- 1get prop() defines a getter called on property access
- 2get creates a regular method that must be called with ()
- 3set is a special constructor for building property objects
- 4getters must always be paired with a matching setter
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.