Member (Definition)

Elements within an object.

Members of structures and unions in other languages have some analogy with methods and properties of an object. In a procedural language you can access members of a structure by name. So also can you access properties within an object.

A member name is an identifier.

The notation for accessing structure members in C language and property values in JavaScript is identical:

There is a variation in JavaScript that allows properties to be called as functions, thus:

This notation can also denote methods that belong to an object.

See also:Method, Namespace