What is the wrong?


Oops, try again.
It looks like your perimeterBox function doesn't return the correct perimeter (4) for a width of 1 and a length of 1.

var perimeterBox=function(length,width){
   var perimeter= length+length+width+width;


you have to use return instead of console.log


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