Having trouble on 9. Functions with two perimeters. I don't know what I did wrong


#1



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


SyntaxError: missing before statement


var perimeterBox(length, width) {
    return length + length + width + width;
};
perimeterBox(5,5)


#2

You are trying to create a function here I believe but you failed to write that function.

var perimeterBox = function(length, width) {

Hope this helps! :smile:


#3

Lol wow, I can't believe I did that. I was stuck on this for like 20 minutes. Thank you!!!


#4

You're welcome.

Have fun coding! :smile: