Keep getting syntaxError unexpected token this


#1

function Rectangle(height, width) {
this.height = height;
this.width = width;
this.calcArea = function() {
return this.height * this.width;

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

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


#2

Can you tell me about this:

When doing a function, this is the correct structure:

var ____ = function(){}

or

function _____ (){}