Subclassing in Javascript

Coming to coding in Javascript, I think it will be neat to have a code snippet which allows a class to extends a parent class. The attached code demonstrate the usage and requires the understanding of the fact that JavaScript is a prototyped-object oriented programming language.

Posted byA nerdy girl at 12:27 PM 0 comments