Intermediate MDN Web Docs • custom-js-objects

2. Custom JS objects

Lesson Overview

Create custom JavaScript objects to gain a deeper understanding of object-oriented programming.

Having a deeper knowledge of how JavaScript objects work is useful as you build confidence with web development, start to build more complex apps, and create your own libraries.

Learning outcomes:

  • Object prototypes.

  • JavaScript class syntax.

  • Defining a constructor.

  • Defining properties and methods.

  • Defining static properties and methods.

Resources: