Learn JavaScript

Lesson 3 of 9 · this, Prototypes and Classes

Module 9 · this, Prototypes and Classes

Six Complete Programs Built from Classes: Accounts, Shapes, Events and a Linked List

Free with an accountReading

Knowing the syntax is one thing. Deciding what belongs in a class is another. This lesson builds six complete programs of the kind a working programmer writes in an ordinary month. They are a bank account, a family of shapes, a counter, an event emitter, a linked list and a to-do list with undo.

Checking what this lesson needs for you…

What is inside Six Complete Programs Built from Classes: Accounts, Shapes, Events and a Linked List

  1. The shape every class here shares
  2. A bank account that keeps its promise
  3. A family of shapes with one area call
  4. A counter with a private field
  5. An event emitter
  6. A linked list class
  7. A to-do list with undo