Difference between __proto__ and Prototype in JavaScript | Well explained | Astute Js

Pubblicato il: 16 settembre 2017
sul canale di: Astute JS
9,354
64

https://jsfiddle.net/sathishkrcs/67q6...

prototype is a property of a Function object. It is the prototype of objects constructed by that function.

_proto_ is internal property of an object, pointing to its prototype. Current standards provide an equivalent Object.getPrototypeOf(O) method, though de facto standard _proto_ is quicker.

You can find instanceof relationships by comparing a function's prototype to an object's _proto_ chain, and you can break these relationships by changing prototype.

https://stackoverflow.com/questions/9...


In questa pagina del sito puoi guardare il video online Difference between __proto__ and Prototype in JavaScript | Well explained | Astute Js della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Astute JS 16 settembre 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 9,354 volte e gli è piaciuto 64 spettatori. Buona visione!