What is the wrong?


#1


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;
 console.log(perimeter);
};
perimeterBox(1,1);


#2

you have to use return instead of console.log


#3

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