Functions with Two Parameters


#1


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

It's saying: Did you define a parimeter box function?


var parimeterBox= function(length, width) {
    return 2*length*width;
}
parimeterBox(5,5);


#2

Spelling issue. perimeterBox


#3

ahh.. I see that now. Thank you for your response.


#4

Also the return for the perimeterBox should be:

return 2*length + 2*width;


#5

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