Problems with functions with 2 parameters


#1


var perimeterBox = function(length, width){
var perimeter = length+length+width+width;
console.log(perimeter);
};

perimeterBox(1,1);

And why the result is:"4
4"???


Replace this line with your code.


#2

you log the perimeter of a box, you need to return the perimeter of a box


#3

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