I know it's pure speculation, yes, but I also notice that it is precisely in those years, 2005 to 2009, when the attempts to build class systems, inheritance systems, extension systems over JavaScript's prototype chain, were flourishing everywhere.
Es una especulación, sí, pero recordando también que es precisamente esa época, entre 2005 y 2009, cuando los intentos de crear sistemas de clases, de herencia, de extensión sobre los prototipos de JavaScript, florecían por todas partes.
Other results
When accessing the properties of an object, JavaScript will traverse the prototype chain upwards until it finds a property with the requested name.
Cuando se accede a las propiedades de un objeto, JavaScript recorre la cadena de prototipo hacia arriba hasta encontrar la propiedad con el nombre solicitado.
Scope objects form a chain called the scope chain, similar to the prototype chain used by JavaScript's object system.
Similarly, although the terms parent, child, ancestor, and descendant do not have formal meanings in JavaScript; you can use them informally to refer to objects higher or lower in the prototype chain.
Del mismo modo, aunque los términos padre, hijo, ancestro y descendiente no tienen significados formales en JavaScript, se usan informalmente para referirse a objetos por encima o por debajo en la cadena de prototipos.
However, if a property with the same name exists on the object's prototype chain, the object will inherit that property from the prototype.
Sin embargo, si existe otra propiedad con el mismo nombre en la cadena del prototype del objeto, éste heredará la propiedad del prototype.
If the method is on an object's prototype chain, this refers to the object the method was called on, as if the method was on the object.
Si el método esta sobre una cadena de prototipo del objeto, this refiere al método del objeto cual fue llamado, como si el método fuese el objeto.
hasOwnProperty is the only thing in JavaScript which deals with properties and does not traverse the prototype chain.
hasOwnProperty es la única utilidad en JavaScript que se ocupa de las propiedades y no las salta en la cadena de prototipo.
This method can be used to determine whether an object has the specified property as a direct property of that object; unlike the in operator, this method does not check down the object's prototype chain.
Este método puede ser usando para determinar si un objeto tiene la propiedad especificada como una propiedad directa de ese objeto; a diferencia del operador in, este método no verifica la cadena prototipo del objeto.
It is used in some JavaScript internals (like declaring the end of the prototype chain by setting Foo.prototype = null), but in almost all cases, it can be replaced by undefined.
Es utilizado en algunos detalles internos de JavaScript (como declarar al final de un cadena de prototipo estableciendo Foo.prototype = null), pero en casi todos los casos, puede ser reemplazado por
It forms part of a lookup chain (that has a special name, "prototype chain"): any time you attempt to access a property of Person that isn't set, JavaScript will check Person.prototype to see if that property exists there instead.
Forma parte de una cadena de búsqueda (que tiene un nombre especial, "cadena de prototipos"): siempre que intentes acceder a una propiedad de Persona que no exista internamente, JavaScript chequeará Person.prototype para ver si existe allí.
Not without Gordon's prototype, at least not for some time.
No sin el prototipo de Gordon, al menos por algún tiempo.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.