Objects own a set of properties that are named containers for values. You can create new properties belonging to the object itself or to its prototype if you want to share them among all instances of an object class. Using the object and property reference as an LValue allows you to assign a new value to the property. To retrieve the property value, use it as you would any other RValue.
Prev | Home | Next |
Property name | Up | protected |
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. |