var perimeterBox = function(length, width) {
return length * width;
it says this doesn't return the correct perimeter (4) for a width of 1 and a length of 1.


First of all, since it's the perimeter, I returned length+length+width+width instead of length*width.

Also, I didn't add that last part over there.

With the two corrections, I think it'll work.


	Perimeter of a rectangle =  2 * (length + width)
	Area of a rectangle = length * width

We have to calculate the perimeter, not the area. So choose the correct formula.