Property accessor (Definition)

Properties are accessed by name.

Availability:

ECMAScript edition - 2

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

Cross-references:

ECMA 262 edition 2 - section - 11.2.1

ECMA 262 edition 3 - section - 11.2.1