Readings 2 - 402-advanced-javascript-traebennett/seattle-javascript-401d31 GitHub Wiki
Let's talk about inheritance with javascript. Inheritance in itself is a pretty broad term. But using this with Classes can benefit you quite a bit. For example, lets say you had some constructors with certain properties and paramters that you also wanted on other constructors that you have. I like to reference this to something like a video game, because you would have multiple constructors that also need the same properties. Lets say you would have a constructor for a character that had a Walk(), Speak(), Run(), and Crouch() function. Then you added a second character. Let's say you just needed everything again except the Speak(). You could makes a parent class called #Characters that has everything in it. Then extend new classes like #Character1 and #Character2. That way, instead of re writing the same functions, you can just access the old ones your wrote, and it will all work the same.