Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 689955 of Property

  • Revision slug: Glossary/property
  • Revision title: Property
  • Revision id: 689955
  • Created:
  • Creator: alispivak
  • Is current revision? No
  • Comment

Revision Content

Summary

Characteristic of an object. In many programming languages, property describe attributes associated with a data structure.

In Depth

Part of an object. A property has a name and a value. The name is a string. The value can be a primitive, method, or object reference. It is often stated that a property holds an object -- this is shorthand for saying the property holds a reference to the object, as properties cannot directly hold the objects themselves. In the case of the property holding an object, there is a distinction between the property's value and the object due to the nature of object references -- the property's value can be changed when it's set to another value, but this does not modify the previously referenced object in any way.

Revision Source

<h2>Summary</h2>
<p>Characteristic of an object. In many programming languages, property describe attributes associated with a data structure.</p>
<h3>In Depth</h3>
<dl>
</dl>
<p>Part of an <strong>object</strong>. A property has a name and a value. The name is a string. The value can be a <strong>primitive</strong>, <strong>method</strong>, or <strong>object reference</strong>. It is often stated that a property holds an object -- this is shorthand for saying the property holds a reference to the object, as properties cannot directly hold the objects themselves. In the case of the property holding an object, there is a distinction between the property's value and the object due to the nature of object references -- the property's value can be changed when it's set to another value, but this does not modify the previously referenced object in any way.</p>
<dl>
</dl>
Revert to this revision