edit-article
Home
Up
Delete
Article Name:
Article Description:
By Asen Bozhilov - every object can be a prototype for another object. This process is called forming of prototype chain.
Chapter ID/Name:
Status:
Write
Writing
Written
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">the magic proto property</h1> <h2>[WHAT]</h2> <ol> <li>] every object can be a prototype for another object.</li> <li>] This process is called forming of prototype chain.</li> <li>] The prototype chain is a finite linked list of objects, from which the particular object inherits properties and methods</li> <li>] Behind the scene the objects in prototype chain are linked each other, via their <code>Prototype</code> property.</li> <li>] This property is <strong>immutable</strong> and it is <strong>not directly accessible</strong> by Javascript code. So Javascript code cannot modify the prototype chain of an existing object according ECMA-262 standard</li> <li>]</li> </ol> <h2>[WHY]</h2> <ol> <li>] </li> </ol> <h2>[WHERE]</h2> <ol> <li>] <a href="http://coderkeen.com/old/articles/proto.html" target="_blank">http://coderkeen.com/old/articles/proto.html</a></li> </ol> <h2>[WHEN]</h2> <ol> <li>]</li> </ol> <h2>[EXAMPLE]</h2> <ol> <li>]</li> </ol> <h2>[HOW-TO]</h2> <ol> <li>]</li> </ol> <h2>[REFERENCE]</h2> <ol> <li>]</li> </ol> <h1 style="text-align: center;"> </h1>