/javascript-inheritance

Demonstrating inheritance in JavaScript

Primary LanguageJavaScript

Javascript Inheritance

What is this?

This is a playground for javascript inheritance, and using getters and setters within class definitions.

Is it useful?

When I really need inheritance in javascript, I use klass, selfish, backbone.js, or something similar. No need to reinvent the wheel. This repo is just me trying to understand the concepts better.

A note on code style

I've tried to keep all the javascript coded according to the Google JavaScript Style Guide, and all javascript should pass the Google Linter in --strict mode.

Thanks

Many thanks to these helpful individuals and their shared knowledge: