11
Objects & Classes

Objects & Classes

The other half of JavaScript: objects in depth, the prototype chain, and what classes actually compile to.

~ 125 min·8 lessons·updated apr 2026

What you'll learn


Lessons

Read in order. Each lesson stands on its own, but the order is deliberate.

8 lessons · ~125 min total

  1. 01
    Object basics
    A bag of named values. Literals, dot vs bracket, shorthand, spread, deletion.
    14 min
  2. 02
    Property descriptors
    Every property has hidden metadata. Getters, setters, and why const doesn't freeze.
    16 min
  3. 03
    The prototype chain
    How property lookup walks one object to the next. The link that powers everything.
    17 min
  4. 04
    Classes
    What class actually desugars to. Constructors, methods, and static.
    16 min
  5. 05
    Inheritance
    Extends, super, and the is-a vs has-a check that saves you from bad hierarchies.
    16 min
  6. 06
    Private and protected
    The # field, the closure trick, and why underscore was always a polite fiction.
    14 min
  7. 07
    this in classes
    Lost this in callbacks, the React class-component pain, and the arrow-field fix.
    15 min
  8. 08
    Checking and copying
    instanceof, Object.keys, spread, and structuredClone — picking the right tool.
    17 min

Prerequisites

  • · JavaScript Foundations
  • · JavaScript Functions

After this, try