Functions with Two Parameters


I have been stuck on this for and hour! It finally dawned on me that if I use the formula for finding the perimeter of a rectangle it will work ( at least for me and I despise math!)

This is what I got!

function perimeterBox(length,width) {
return (length*2)+(width *2);

It returned 22 which is correct!


What exercice is this @jessica_davis17? To make sure you exactly did what codecademy told you to do for that excercise .


Well done! :wink:  


I've moved on from that lesson and this particular one i added in numbers into the parentheses just to make sure i was doing it correctly and I did the original codecademy lesson i just refresh my code and started over, again just to practice and make sure I did everything correctly.!