Compare Revisions

Property Accessors

Revision 478325:

Revision 478325 by PointedEars on

Revision 478327:

Revision 478327 by PointedEars on

Title:
Property Accessors
Property Accessors
Slug:
Web/JavaScript/Reference/Operators/Member_Operators
Web/JavaScript/Reference/Operators/Member_Operators
Content:

Revision 478325
Revision 478327
t14      One can think of an object as an&nbsp;<em>associative arrayt14      One can think of an object as an&nbsp;<em>associative array
></em> (a.k.a. <em>map</em>, <em>dictionary</em>, <em>hash</em>, <></em> (a.k.a. <em>map</em>, <em>dictionary</em>, <em>hash</em>, <
>em>lookup table</em>). The <em>keys</em> in this array are the na>em>lookup table</em>). The <em>keys</em> in this array are the na
>mes of the object's properties. It's typical when speaking of an >mes of the object's properties. It's typical when speaking of an 
>object's members to make a distinction between properties and met>object's properties to make a distinction between properties and 
>hods. However, the property/method distinction is little more tha>methods . However, the property/method distinction is little more
>n a convention. A method is simply a property with a <a href="/en> than a convention. A method is simply a property that can be cal
>/JavaScript/Reference/Functions_and_function_scope" title="en/Jav>led, for example if it has a reference to a <a href="/en/JavaScri
>aScript/Reference/Functions_and_function_scope">function</a> as i>pt/Reference/Functions_and_function_scope" title="en/JavaScript/R
>ts value.>eference/Functions_and_function_scope">Function</a>&nbsp;instance
 > as its value.

Back to History