Object Inheritance Using Functional Composition in JavaScript

Picture this...

You’re a developer working away at a project which is responsible for modelling animals. At this point, you have created an Animal class which is to be extended by each animal you create.

class Animal {
  constructor(name) {
    this

Let's get in touch.