JavaScript is a bit confusing for developers experienced in class-based languages (like Java or C++), as it is dynamic and does not provide a class implementation per se (the class keyword is introduced in ES2015, but is syntactical sugar, JavaScript remains prototype-based).
When it comes to inheritance, JavaScript only has one construct: objects. Each object has a private property (referred to as [[Prototype]] ) which holds a link to another object called its prototype. That prototype object has a prototype of its own, and so on until an object is reached with null as its prototype. By definition, null has no prototype, and acts as the final link in this prototype chain.
https://developer.mozilla.org/en-US/d...
Sur cette page du site, vous pouvez voir la vidéo en ligne Prototype Chain in Javascript | Astute Js durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Astute JS 17 septembre 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 278 fois et il a aimé 2 téléspectateurs. Bon visionnage!