9/13 Help


#1

Can someone tell why this doesn't work

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


#2

Instead of number you should have used length and width as parameter. Then your stuff that belongs to the function should be wrapped in {} and not just a random line later in the progress:

var name = function(parameters){
     code;
}

name(arguments);

and of course the number of arguments has to match the number of parameters as the arguments are what is assigned to the parameters.