Did you apply Java concepts to Javascript?
You do not need to inherit classes in Javascript, you just enrich objects.
Thus, the best way in my world (a world full of people who use dizziness methods in objects):
function GeometricArray() { var obj=[] obj.height=function() {
source share