perimeterBox is not defined keeps coming up


#1

"Did you define perimeterBox" is coming up

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

This is my code

// Write your function starting on line 3

var areaBox = function(length, width) {
    return length * width;
};

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

parimeterBox(9, 3);

The answer is right but the code is apparently undefined for perimeterBox


#2

It should be perimeter, not parimeter (a instead of e).


#3

I was stupid enough to misspell it, thanks


#4

It happens to everyone, you're very welcome :slight_smile:


#5

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