Functions with Two Parameters


#1

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);
}
perimeterBox(3,8)

It returned 22 which is correct!


#2

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


#3

Well done! :wink:  


#4

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.!


#5

:wink: