9. Functions with two parameters


#1

help! my code crashes my page.............

var perimeterBox = function(length, width){

console.log("costly price");
perimeterBox(3, 9);

};


#2

perimeterBox values should be out of the curly braces.

var perimeterBox = function (length, width) {
console.log("Costly Price");
}

perimeterBox(3, 9);

#3

OMG seriously??????!!!?! and i was so close too..... thanks for the correction man


#4

Yes a function only runs when you call it from outside of it. When the function call is inside of the function it will as well only be active when the function is called from outside.