Model domain entities with confidence using modern class features. This course explores the prototype model beneath classes, then layers on private fields, static members, getters/setters, inheritance with `super`, custom error subclasses, `instanceof`, and `WeakMap`-based privacy as an alternative. You'll learn when to choose each tool and how to keep class designs robust.
Overview
Syllabus
Understanding JavaScript Classes
- Modernize the Blueprint
- Refining the Blueprint
- Build Your Own Shape Blueprint
- Mastering the Stack Blueprint
Privacy and Static Members
- Guarding the Internal State
- Tracking every object created
- Protect and Track Your Objects
- Build a Secure Account System
Inheritance With Super
- Connecting the Blueprints
- Repairing the Inheritance Chain
- Building on Existing Logic
- Mastering the Class Chain
Custom Error Classes
- Beyond Standard Errors
- Handling Errors Like a Pro
- Building a Safety Net
- Build a Targeted Error System
Advanced Composition and Metadata
- Keep Your Objects Clean
- Refining Advanced Class Patterns
- Mixing Things Up
- Mastering Object Privacy