Overview
Dive into a comprehensive 23-minute tutorial on JavaScript prototypes, exploring the concept of __proto__ and prototype inheritance. Learn about the prototype chain, modern methods versus __proto__, and the three rules of prototypal inheritance. Discover how to inherit getters and setters, work with the JavaScript Object, loop through direct and inherited keys, and understand object constructor functions. Conclude with an exploration of ES6 classes and class extension, gaining valuable insights into a popular interview topic that underpins modern JavaScript development.
Syllabus
Intro
Good Reasons to know about Javascript Prototypes
Hello __proto__
New Modern Methods vs __proto__
More than one link in the prototype chain
3 Rules of Prototypal Inheritance
Inheriting a Getter and a Setter
Inheriting from the Javascript Object
Looping through direct and inherited keys
Object Constructor Functions and Prototypes
Javascript ES6 Classes and Extending Classes
Taught by
Dave Gray