Compare Revisions

Object.prototype

Revision 66060:

Revision 66060 by alex.w.y on

Revision 66061:

Revision 66061 by alex.w.y on

Title:
prototype
prototype
Slug:
JavaScript/Reference/Global_Objects/Object/prototype
JavaScript/Reference/Global_Objects/Object/prototype
Content:

Revision 66060
Revision 66061
n7    <h2 name="Summary">n7    <h2 id="Summary" name="Summary">
n13    <h2 name="Description">n13    <h2 id="Description" name="Description">
n17      All objects in JavaScript are descended from <span class="nn17      All objects in JavaScript are descended from <span class="n
>oinclude"><code><a href="/en/JavaScript/Reference/Global_Objects/>oinclude"><code><a href="/en/JavaScript/Reference/Global_Objects/
>Object" title="en/JavaScript/Reference/Global_Objects/Object">Obj>Object" title="en/JavaScript/Reference/Global_Objects/Object">Obj
>ect</a></code></span><span class="includeonly"><code>Object</code>ect</a></code></span><span class="includeonly"><code>Object</code
>></span>; all objects inherit methods and properties from <span c>></span>; all objects inherit methods and properties from <span c
>lass="includeonly"><code><a href="/en/JavaScript/Reference/Global>lass="includeonly"><code><a href="/en/JavaScript/Reference/Global
>_Objects/Object/prototype" title="en/JavaScript/Reference/Global_>_Objects/Object/prototype" title="en/JavaScript/Reference/Global_
>Objects/Object/prototype">Object.prototype</a></code></span><span>Objects/Object/prototype">Object.prototype</a></code></span><span
> class="noinclude"><code>Object.prototype</code></span>, although> class="noinclude"><code>Object.prototype</code></span>, although
> they may be overridden&nbsp;(except an&nbsp;<code>Object</code>&> they may be overridden&nbsp;(except an&nbsp;<code>Object</code>&
>nbsp;will a null prototype, i.e.&nbsp;<code>Object.create(null)</>nbsp;with a <code>null</code> prototype, i.e.&nbsp;<code>Object.c
>code>). For example, other constructors' prototypes override the >reate(null)</code>). For example, other constructors' prototypes 
><code>constructor</code> property and provide their own <code>toS>override the <code>constructor</code> property and provide their 
>tring</code> methods. Changes to the <code>Object</code> prototyp>own <code>toString</code> methods. Changes to the <code>Object</c
>e object are propagated to all objects unless the properties and >ode> prototype object are propagated to all objects unless the pr
>methods subject to those changes are overridden further along the>operties and methods subject to those changes are overridden furt
> prototype chain.>her along the prototype chain.
n19    <h2>n19    <h2 id="Properties">
t51    <h2>t51    <h2 id="Methods">

Back to History