Skip to content
skillbld
Day 11 of 14 30 minclassextendsPrototype chain

Create many objects of the same kind with classes. Write constructors, methods, getters and private fields, build on other classes with extends and super, and see the prototype chain that makes it all work underneath.

By the end of today you can

  • Define a class with a constructor and methods, and create instances with new
  • Use getters, setters, static members and private fields
  • Extend a class and call the parent with super
  • Explain how this works in methods and arrow functions
  • Describe the prototype chain behind classes

What's inside

  • 5 sections
  • 3 diagrams and mind maps
  • 5 code examples you can run
  • 5-question quiz
  1. 1A first class
  2. 2Getters, setters, static members and private fields
  3. 3Inheritance: extends and super
  4. 4What is this?
  5. 5Underneath: prototypes

Sign in free to read this lesson

Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.

Sign in free
Day 11: Classes & Prototypes · JavaScript · SkillBld