33. Methods HELP


#1

I am extremely confused. I dont know how to do this.. Here is my code

function Circle (radius) {
this.radius = radius;
this.area = function () {
return Math.PI * this.radius * this.radius;

};
// define a perimeter method here

this.perimeter = function() {
return Math.PI * this.radius * 2;
};


#2
function Circle (radius) { //<--- Opened curly bracket for Circle function
  this.radius = radius;
  this.area = function () { //<--- Opened curly bracket for area function
    return Math.PI * this.radius * this.radius;
  }; //<--- Closed curly bracket for area function
  this.perimeter = function() { //<--- Opened curly bracket for perimeter function
    return Math.PI * this.radius * 2;
  }; //<--- Closed curly bracket for perimeter function

You've opened 3 curly brackets but closed 2. Your area function is closed, your perimeter function is closed, so only one function is missing.