This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by SamIsFab
over 8 years

[RESOLVED] 9/13 PLEASE HELP!

//DO NOT HAVE A CLUE, been on this for like 2 hours. NO LUCK.

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

Resolved version:

var perimeterBox = function(rectangle) {
      return length * width;
};

Answer 55bc5b05e39efe6def000376

0 votes

Permalink

var perimeterBox = function(length, width) { return legnth + length + width + width; }; perimeterBox(length, width);

you misspell the length

points
Submitted by Lelouch Lamperouge
over 8 years

Answer 55bc5bad9376766c550004f4

0 votes

Permalink

you can simplify the formula of the perimeterBox by doing so

length * 2 + width * 2;

points
Submitted by Lelouch Lamperouge
over 8 years