🎁

12 Days of Baddass Courses sale! Get instant access to the entire egghead library of courses and lessons for 58% off.

Runs out in:
11 : 17 : 37 : 46

Understanding JavaScript's Prototypal Inheritance

ClockIcon27m
javascriptJavaScript
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.2
949 people completed
Tyler Clark
By

Tyler Clark

Developer, instructor, consultant, and speaker

How do inherent prototypes work?

You might not think this question applies to you, especially if you come from a classical background. But if you use objects, functions, or arrays, you're probably already using prototypes, and can benefit from learning the logic behind them.

This course explores the mechanics of inheritance in JavaScript by showing how prototypes work as chained references to other objects. Learn to take full advantage of prototype shortcuts to make your work simpler and faster…and debug them if you hit a snag.

We’ll explore:

  • how to manipulate prototypes to work like traditional classes
  • how polymorphism and factory functions can be used within JavaScript
  • how the class, new, and this keyword work and how to use them
  • using the instanceof, Object.create, and Object.getPrototypeOf functions to explain why objects have the properties that they do

Develop the knowledge needed to use inheritance for faster, better, bug-free code.

Tyler Clark
By

Tyler Clark

Developer, instructor, consultant, and speaker