I got it to work but dint get the an answer NaN


#1

// Write your function starting on line 3
var perimeterBox = function (length,width) {
return (length+length) + (width+width);
};
var length = 1
var width = 1
console.log(perimeterBox(length+width))

I think it could be the spacing for console.log it does not look right
if anyone can see where I went wrong thanks


#2

NaN tells us our code is raisng a Not a Number error when it should not be. 'Where is this occuring?' will be your next question.


#4