• + 0 comments
    Rectangle.prototype.area = function () {
      return this.w * this.h;
    };
    
    class Square extends Rectangle {
     constructor(side) {
        super(side,side);
      }
    }