1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Introduction to Prototypal Inheritance in JavaScript

    Tyler ClarkTyler Clark
    javascriptJavaScript

    This video is designed to give you an idea of the topics we will be covering in this course.

    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Transcript

    Transcript

    Instructor: 00:00 This course is designed to teach you the mechanics behind inheritance in JavaScript. You might initially think, "Why do I care?" or "I don't even use this." You might not realize it, but if you work with objects, functions, arrays, to name a few, you probably are.

    00:14 It is through the prototype chain that methods such as filter, map, reduce can be used in arrays, or the bind and apply methods used on functions even perform any functionality at all.

    00:25 We will also explore the "new" keyword, what it does, and how it's different than what you will see in classical languages. We'll explore the constructor or parent to child relationship used with functions and objects.

    00:37 Also, if you work in React or other component-based frameworks, you're probably using the "class" keyword to create your components. Do you know what is happening behind the scenes?

    00:47 Have you ever wondered where those special methods that just magically exist for you to use come from? This course gives you the knowledge about how prototypes work inside of JavaScript.

    00:57 Finally, we'll also talk about factory functions, which gives us the ability to create reusable and flexible objects with functions.

    Discuss

    Discuss