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 2 * Math.PI * this.radius;
}
```

};

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 2 * Math.PI * this.radius;
}
```

};

is there anything wrong with this code?

Here is the question under Methods:

- Methods are like functions that are associated with a particular object.

They are especially helpful when you want to either:

Update the object properties

Calculate something based on an object's properties.

Here, we have included a Circle object, with a radius property representing the circle's radius. We have implemented an area function which calculates the circle's area. Notice we have used Math.PI to get the π value.

Instructions

Define a method perimeter that calculates the perimeter of a circle.

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 2 * Math.PI * this.radius;
}
```

};

function.perimeter();

He is in 33/33.

I have 2 suggestions:

First, don't use capitalization.

Second, in this.perimeter, put a semicolon.

Third, don't put function.perimeter(); at the end.