The Startup
Published in

The Startup

Introduction to JavaScript Inheritance

Before we dive in, I’ll be assuming that you have prior knowledge on the following:

Pre-requisites: JavaScript Objects, constructor functions and basic object-oriented programming.

Creating a Class

Let’s take a look at this Animal class:

class Animal {
constructor(name, call, age, gender) {
this.name =

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Victoria Lo

Victoria Lo

281 Followers

A nerd in books, tea and programming. I publish weekly on my personal blog: https://lo-victoria.com/