Java script is a large application. Java Script has somewhat a unique and crucial inheritance model for large application. So my question is that, how inheritance works in Java Script...
Basically, in JS inheritance is not based on classes (as we don't define classes), but on prototypes.
Type Javascript prototypes in Google, you'll find complex articles about this