Properties are accessed by name either using the dot notation or the square bracket notation.
The dot and bracket notations are generally exchangeable with one another.
The object to which the property-access message is being directed can be derived from an expression.
The name of the identifier can be derived from an expression but it must yield a meaningful string value that corresponds to a genuine or potential property of the receiver.
See also: | Decimal point (.), Left-Hand-Side expression, Property |
Prev | Home | Next |
Property | Up | Property attribute |
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. |