Property Getters and Setters
Getters and setters are always functions that start with get
or set
. They can be called multiple times with little performance impact (in other words, they should simply return cached fields or do very simple calculations). Properties are always synchronous and return immediately with the value, rather than having a callback function.