Prototype Chain in Javascript | Astute Js

Veröffentlicht am: 17 September 2017
auf dem Kanal: Astute JS
278
2

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...


Auf dieser Seite können Sie das Online-Video Prototype Chain in Javascript | Astute Js mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Astute JS 17 September 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 278 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!