JavaScript Getters and Setters
Getters and Setters allow you to build useful shortcuts for accessing and mutating data within an object. Generally, this can be seen as an alternative to having two functions with an object that are used to get and set a value…
John Resig - JavaScript Getters and Setters
Well, this is something I did not know.
technorati tags:javascript, getter, setter