Functions with two parameters


Any help? I am stuck over an hour, and I don't get it. Thank you.

Functions with two parameters

Oops, try again. It looks like your perimeterBox function doesn't return the correct perimeter (4) for a width of 1 and a length of 1.

Replace this line with your code. 
var perimeterBox = function(lenght, width) {
    return length + length + width + width;


Sorry to read you spent an hour over this...

var perimeterBox = function(lenght, width)

Spelling of length.


Thank you,

I need a break.


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