Functions with 2 parameters


#1

I wrote this code .. is there something wrong ? It is showing me syntax error

var perimeterBox = function(length, width);
{
return (length + width)*2;
};
perimeterBox(5,5);


#2

Unneeded semicolon. :slightly_smiling:


#3

hahahahahah ... Thanks a lot mate all sorted. :stuck_out_tongue: