The search continues up the prototype chain until it reaches the root prototype, which is usually Object.prototype. That object, in turn, may have its own prototype. The prototype is a delegate object, which means that the property lookup is delegated to the prototype object. When you try to access a property on an object, and that property is not found, JavaScript looks at the object's prototype. Even more, it's a delegation-based system, which means that each object has a prototype chain. Prototypes - JavaScript is a prototype-based language. Here are seven JavaScript concepts you must understand before you go into your next JavaScript job interview:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |