33.Methods


#1

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

};
// define a perimeter method here

};

I need help I dont understand!!!????


#2

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

};
// defina um método para cálculo do perimetro aqui
this.perimeter = function(){
    return 2 * Math.PI * radius;
    }

}


#3

I agree I was a little lost on this one. I was half way correct. The Math.PI took me for a loop in defining it.