9/13 help asap plz


#1
var perimeterBox=function(length,width){ 
    return
    length + length + width + width;};   
perimeterBox(1,1);

#2

the problem seem to be this lines:

return
length + length + width + width;};

javaScript is auto inserting semicolons if you use line breaks so this is translated to:

return;
length + length + width + width;};

meaning you return without a value and the rest is ignored. So just make sure the value you want to return is on the same line as return.


#3

didnt work can u show me ur one on this


#4
var perimeterBox=function(length,width){ 
    return length + length + width + width;
};   
perimeterBox(1,1);