18/33 help!


#1

Can anyone help me with my coding? if you can copy and paste mine, fix it and put in comments! thanks :smile:

var square = new Object();
square.sideLength = 6;
square.calcPerimeter = function() {
return this.sideLength * 4;
};
// help us define an area method here
square.calcArea = function() {
return this.sidelength * this.sidelength;
};
var p = square.calcPerimeter();
var a = square.calcArea();


#2
square.calcArea = function() {
return this.sidelength * this.sidelength;
};

here you use sidelength with a lower case l but your property writes sideLength with an upper case L.