Why is my Perimeter method not working?


#1



https://www.codecademy.com/courses/spencer-sandbox/5/4?curriculum_id=506324b3a7dffd00020bf661#

Oops, try again. Your perimeter method fails on a Circle with radius 1 where it returns NaN when it should return 6.283185307179586


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.raduis;
        
    };
};


#2

inside your perimeter method, you misspelled radius. Which is why it is not working


#3

Thanks a lot. cant believe that mistake was driving me nut and i stared at it for a while and couldn't figure it out :sweat_smile: