Question 9 perimeterBox function


#1

I'm bad at math/algebra, so do you think this function I made is good enough?

var perimeterBox = function (side1,side2) {
    return (side1 * 2) + (side2 * 2);
}

var myRectangle = perimeterBox(6,2);

console.log(myRectangle);

#2

That's perfect! Well done!