JavaScript Prototypes and the Object Model

Stephen Gruppetta 17 Lessons 2h 43m Updated advanced js oop py

In Python, a base class’s property setter runs whenever a subclass assigns that attribute. Port the tool library’s drilling kit with its label as a class field, label = " drilling ";, and JavaScript defines the field without calling the base class’s trimming setter, so the label prints as [ drilling ].

In this course, you’ll port Northbank Tool Library’s Python kit model, which describes each loan kit by code and label, walks a kit’s tools, and tags each description, to JavaScript.

By the end of this course, you’ll be able to:

  • Trace how a JavaScript object finds a property, one prototype link at a time, out to Object.prototype
  • Tell a constructor apart from its .prototype object
  • Predict where super starts looking, and keep an inherited setter in the loop when you port a class
  • Implement a language protocol, such as iteration with Symbol.iterator, on your own class
  • Choose between a chain of cooperative class layers and a part an object holds
  • Port the whole loan kit model to JavaScript

You’ll need Python classes, super() and the MRO, properties and other descriptors, and dunder methods such as __iter__(), plus Node 26 and JavaScript classes with constructor, fields, get and set, extends and super, Object.create() and Object.getPrototypeOf(), and symbol keys. The Python examples use Python 3.15.

The course mixes short videos and text lessons with exercises, a project that ports the kit model, and a quiz.

What’s Included:

  • 17 Lessons
  • Video Subtitles and Full Transcripts
  • Translated Subtitles in 8 Languages
  • 2 Downloadable Resources
  • Interactive Quiz to Check Your Progress
  • 5 Hands-On Coding Exercises
  • Q&A With JavaScript Experts: Ask a Question
  • Certificate of Completion

Downloadable Resources:

Related Learning Paths:

Getting Started

1 Lesson 1m

  1. 1. Welcome to the Tool Library01:53

About Stephen Gruppetta

Stephen obtained a PhD in physics and worked as a physicist in academia for over a decade before becoming a programming educator. He's constantly looking for simple ways to explain complex things.

» More about Stephen

← Browse All Courses