33/33 Methods What i am doing wrong?


#1


Please help me !! 

What I am doing wrong? 

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

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

Thank you for help !:D


#2

Remove all references to raio and this.raio and change this line,

to refer to this.radius and not this.raio. :slight_smile:


#3

Thanks :smiley: its work's


#4

You're very welcome :grin:


#5

Please help me!!!!
For some reason this isn't working!

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


#6

Try it like this:

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

#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.