illustration for Understanding JavaScript's Prototypal Inheritance
pro

Understanding JavaScript's Prototypal Inheritance

Instructor

Tyler Clark
27m closed-captioning
·
13 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.3
1094
people completed
Published 6 years ago
|
Updated 3 years ago

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.

Course Content

27m • 13 lessons

    You might also like these resources:

    illustration for Introduction to Cloudflare Workers
    Kristian Freeman・36m・Course

    Become familiar with the Workers CLI wrangler that we will use to bootstrap our Worker project. From there you'll understand how a Worker receives and returns requests/Responses. We will also build this serverless function locally for development and deploy it to a custom domain.

    illustration for Create an eCommerce Store with Next.js and Stripe Checkout
    Colby Fayock・1h 4m・Course

    This is a practical project based look at building a working e-commerce store using modern tools and APIs. Excellent for a weekend side-project for your developer project portfolio

    illustration for Practical Git for Everyday Professional Use
    Trevor Miller・1h・Course

    git is a critical component in the modern web developers tool box. This course is a solid introduction and goes beyond the basics with some more advanced git commands you are sure to find useful.