24 help ! I tried a long time


#1

function Rectangle(height, width) {
this.height = height;
this.width = width;
this.calcArea = function() {
return this.height * this.width;
};
this.calcPerimeter = function() { // put our perimeter function here!
return this.height + this.width + this.height + this.width ;
};

var rex = new Rectangle(7,3);
var area = rex.calcArea();
var perimeter = rex.calcPerimeter();


#2

a curly bracket is missing at the end


#3

you forgot t close your function with } insert one at the end