Skip to content

Apr 21: Prototypes, Classes

Learning Objectives

After today’s class, you should be able to:

  • Explain how JavaScript prototypes enable inheritance and shared behavior.
  • Create objects using ES6 class syntax with constructors and methods.
  • Compare prototype-based inheritance with class-based syntax in JavaScript.

Lesson Outline

Lecture [25 min]

Activity [50 min]

Before Thursday

  1. Submit Prep 12 on Gradescope. ← Due Wed at 11:59pm
  2. Make progress on Project 3 in your teamXX repository.