Functions with two parameters


#1

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

Functions with two parameters

https://www.codecademy.com/courses/javascript-beginner-en-6LzGd/2/1?curriculum_id=506324b3a7dffd00020bf661#

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;
};
    console.log(perimeterBox);
    perimeterBox(2,2);

https://www.codecademy.com/courses/javascript-beginner-en-6LzGd/2/1?curriculum_id=506324b3a7dffd00020bf661#


#2

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

var perimeterBox = function(lenght, width)

Spelling of length.


#3

Thank you,

I need a break.


#4

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