Accessor method (Definition)

A method for accessing publicly available object properties.


ECMAScript edition - 2

A method used to store or retrieve property values contained in objects.

In ECMAScript compliant implementations, this is accomplished with internal functions named Get() and Put().

If you add new properties to an object of your own, you may want to implement functions that operate by using the 'this' variable to access properties. These functions are then associated with the object or its prototype, so that they can be shared. They are then referred to as methods rather than functions.

See also:function( ... ) ..., Get(), Method, Put()


ECMA 262 edition 2 - section - 8.6.2

ECMA 262 edition 3 - section - 8.6.2