Funtions


#1

Cananyone help me figure out what I have wrong here. I keep getting an error that says I am not returning a perimeter of 4.

var perimeterBox =function (length, length, width, width)
{return length+length+width+width};
perimeterBox(1,1,1,1)


#2

The instructions call for a function that takes two parameters. Yours takes four. Remove two of them.


#3

got it!

jhkjkhlkjhlkjhlkjhlkjh


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.