illustration for Understanding JavaScript's Prototypal Inheritance

Understanding JavaScript's Prototypal Inheritance

Instructor

Tyler Clark
27m closed-captioning
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.3
1094
people completed
Bookmark
Download
RSS

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.

Learner Reviews

  • Kevin Barnoin
    3 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    How will you use what you learned from this course?

    a lot of important concept are presented and discussed which are very interesting, but there is a lot of scrolling in the videos, sometimes it's hard to follow.

  • Radu Stefan
    4 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    amazing course, hard to totally understand it all, I need to go through the course a few times, and practice it, but I went once and it's really cool, thanks for creating it.

  • Dejan Kostevski
    4 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    I love your tutorials. I like the in-depth and behind the code explanations. I always learn something new, even on the topics I consider to have a good knowledge of. Thank you.

  • Brendan
    4 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What would make this course a 7 for you?

    Solid theory - not entirely sure how I'm going to apply what I've learned, but that's maybe a product of my work environment / skill level vs. the quality of this course.

    The examples were fine, but again, not sure how it relates to something I'd actually build. Great explanations all the same!

  • Pavel Klochkov
    4 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Thanks, good explanation of the tricky topic.

  • Martin Lecke
    4 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Very good, the pace is spot on and very well described

Course Content

27m • 13 lessons

    You might also like these resources:

    illustration for Introduction to Cloudflare Workers

    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

    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

    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.