Inheritance vs Composition
Let us first look at an example of how we would achieve inheritance in ES5+    class Animal {    ...
Tags: javascript, beginners, oop, programming