With getter method we can have property that returns a dynamically computed value or we can reflect the status of internal variable without the use of explicit method calls.
When using get syntax you need to be aware of:
- it can have an identifier which is either a number or a string
- it must have zero parameters
- it must not appear in an object literal with another get or with a data entry for the same property.
A getter can be removed using delete operator.
And there is of course setter method :-). For more info please look on MDN site.