Course Image

Objects and Prototypes In-depth


This course covers important object oriented concepts in JavaScript. There's more to JavaScript objects than simple key-value pairs. Learn advanced object and prototype concepts and unlock some powerful features of the JavaScript programming language. Learn how to use inhertance in your objects.

Start Course

This course covers:

  • Learning how to create objects effectively using constructors
  • Learning different types of function executions and when to use what
  • Demystifying the `this` reference
  • Understanding JavaScript prototypes
  • Implementing code that uses object inheritance



Creating Objects

Learn about JavaScript constructor functions - a pretty neat way of creating objects and initializing objects. Understand how constructors work and how to write them.

Introduction 2 minutes
Objects Basics 4 minutes
Creating objects 6 minutes
JavaScript Constructors 7 minutes
Difference between regular functions and constructors 9 minutes
Switching function types and calls 8 minutes
Unit 1 Review 5 questions



Function execution and the `this` reference

Meet the mysterious and often confusing `this` reference. Learn about the four different ways of calling functions in JavaScript and how each of them affect the `this` reference. After going through this unit, you'll never be confused by that wily `this` reference again!

Function Execution Types 6 minutes
The this argument values 8 minutes
Working on objects with this reference 6 minutes
Using the call function 13 minutes
Unit 2 Review 4 questions




This unit covers advanced object oriented concepts in JavaScript, including how to create an inheritance hierarchy of your objects. All this, using the concept of prototypes. Learn how prototypes work in JavaScript and how to effectively use them in your code.

When constructors aren't good enough 5 minutes
Introducing the prototype 8 minutes
Property lookup with prototypes 9 minutes
Object behaviors using prototypes 9 minutes
Object Links With Prototypes 5 minutes
The Object function 8 minutes
The Prototype object 9 minutes
Inheritance In JavaScript 9 minutes
Conclusion 1 minute
Unit 3 Review 5 questions