Question 9 Two Parameters


#1

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

Hi all,
Could you please help me figure out what I did wrong here?
THANK YOU!

// Write your function starting on line 3
var perimeterBox  = function(length,width); {
    return 2 * (length+width);
};

console.log(perimeterBox(3,9));

#2

this line:

var perimeterBox  = function(length,width); {

the semi-colon interrupts the function, remove the semi-colon


#3

It worked actually! thank you!


#4

can i see an updated version of your code?


#5

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