Problem with Syntax, please help


#1



Hello~! I kept getting "Oops, try again. There was a problem with your syntax."

I have searched through others posts and can't see where my code is wrong.

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

I have tried it changing the spacing and have also left off the semi-colon after the curly bracket. I also tried a few different variations of the return equation.

Thanks !!

var perimeterBox = function(length, width) {
    return 2*(length + width);
};
 perimeterBox(4, 8);


#2

Hi try to refresh the page I just ran it and it work


#3

Hi, thanks for running it. I hit refresh a few times and still the syntax error, not sure why it works for others and not me ... guess I will have to contact someone. Thanks~!!


#4

Or try to change browser.


#5

Thanks. tried that too, still not working. Was on Chrome, tried it on Firefox.


#6

Can you post a screenshot, too make sure you're doing everything right?


#7

So, I went to take a screen shot, hit the Save and Submit and it actually worked this time ..... I swear I didn't change the code at all .... guess my computer is haunted .. haha. Thanks for the help :).