JavaScript Programmer’s Reference Object property delimiter (.) (Delimiter)
JavaScript Programmer’s Reference Object property delimiter (.) (Delimiter) A token to delimit object properties from their object. Availability: ECMAScript edition 2 JavaScript 1.0 JScript 1.0 Internet Explorer 3.0 Netscape 2.0 Netscape Enterprise Server version 2.0 Opera browser 3.0 -myObject.aPropertyJavaScript syntax: -myObject.aProperty.aProperty Argument list: aProperty The identifier name of property to be accessed The dot delimits properties and objects. It can find properties of properties of objects too. The associativity is left to right. Refer to the Operator Precedence topic for details of execution order. You can also access the property values as if the object were an array. This: anObject.aProperty is equivalent to: anObject[”aProperty”] The result will be the value of the property when it is an RValue or a reference to the property when it is an LValue. See also: Associativity, Decimal point (.), Operator Precedence, Postfix operator Cross-references: ECMA 262 edition 2 section 8.6 ECMA 262 edition 2 section 11.2 ECMA 262 edition 3 section 8.6 ECMA 262 edition 3 section 11.2.1 Wrox Instant JavaScript page 28 1590