JavaScript Object Accessors

There are two keywords getter and setter which define the accessors functions. Getters and setters allow you to define Object Accessors.

Code :