TAG: javascript inheritance

Learning by doing one (mini) project at a time

Navigation

Javascript ES6 Classes - A More Intuitive Syntax To Prototypal Inheritance

Growing up I was a sucker for animal documentaries and I was fascinated with anything that had to do with lions, tigers, leopard etc... So no surprise if this exercise will have to do with them.

We will learn a little bit about the Panthera Genus of the Felidea family and some cool new syntax along the way

postimage

You can read about the Panthera lineage here:
https://www.wildcatfamily.com/panthera-lineage/

The Goal

So I want to setup a base model that will hold all the necessary properties and methods to create one of the seven types of big cats that we find in the Panthera lineage. The Panthera Genus is part of the Felidae family so in code it