Stuck here. I can't find the error. Can anyone tell me where?


#1

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

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

Error : Unexpected end of Input.
Please help me where my error is


#2

} missing. I got it. its good now


#3