Why is my Perimeter method not working?



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;


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


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: