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() |
Prev | Home | Next |
AbstractView object | Up | ACRONYM object |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |