To check whether an object has a property defined on itself and not somewhere on its prototype chain, it is necessary to use the hasOwnProperty method which all objects inherit from Object.prototype.
Con el fin de comprobar si un objeto posee una propiedad definida en sí mismo y no en algún lugar de su cadena de prototipo, es necesario utilizar el método hasOwnProperty ya que todos los objetos herendan de Object.prototype.
This section discusses how objects inherit properties from other objects in the prototype chain and what happens when you add a property at run time.
Esta sección describe cómo heredan los objetos sus propiedades de otros objetos en la cadena de prototipos y qué ocurre cuando se añade una propiedad en tiempo de ejecución.
Object-specific access control entries offer more control over what objects inherit the access control entry.
In OOP one object inherit the properties of another object. Polymorphism
En OOP un objeto hereda las propiedades de otro objeto. Polimorfismo
hasOwnProperty()Every object descended from Object inherits the hasOwnProperty method.
Descripción Todo objeto descendiente de Object hereda el método hasOwnProperty.
Element object inherit's the properties and methods of the Node object as element object is also considered as a Node.
Elemento objeto de heredar las propiedades y métodos del objeto de nodo como objeto elemento también se considera como un nodo.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple