Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 665 Bytes

prototypal-inheritance.md

File metadata and controls

7 lines (4 loc) · 665 Bytes

Prototypal Inheritance

Unlike classical languages like C# and Java, JavaScript does not have a true class. It utilizes linking objects together in order to inherit properties. Every single object that you create, unless specified not to, is automatically linked to the corresponding global object prototype.

We also have the ability through utility functions and other methods to link objects together to share functionality. This lesson walks through a simple implementation of this inheritance paradigm and attempts to show how prototypes are used.

OG JS Object