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

Publié le: 16 septembre 2017
sur la chaîne: 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...


Sur cette page du site, vous pouvez voir la vidéo en ligne Difference between __proto__ and Prototype in JavaScript | Well explained | Astute Js durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Astute JS 16 septembre 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 9,354 fois et il a aimé 64 téléspectateurs. Bon visionnage!