Error message


Oops, try again. There seems to be something wrong with your calcPerimeter method! According to your code, a rectangle with sides 1 and 1 has a perimeter of NaN when it should be 4
I keep getting this Error message

this.calcPerimeter = function() {
return ( this.height * 2) + ( this.witdth * 2);
I don't know what's wrong with this bit of code i've tried multiple different ways and I stil get this message


which exercise is this? (url please)

also, this is your full code? If you need help, please post your full code


I'm not sure about but may be it's because you misspelled width.

If the problem persists do what @stetim94 told you.


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