No 9 Functions with 2 parameters can anyone help me with this?


#1


#2

return length + length + width + width; doesn't need to go in brackets.

an alternative way to do that is

return length * 2 + width * 2;


#3

on line 3. delete the semi-colon at the end.
put curly brackets instead. var x = function(){code;};
//call the function
x(value);