(9: Functions with two parameters) instructions inconsistent with demands of exercise


#1


Problem Exercise


The instructions say clearly to "Call the function and pass in any value for length and width you like."
But the exercise requires a length and width of one. Please address.

Replace this line with your code.


#2

Really?
When I entered perimeterBox(0, 0); into my environment, it passed and outputted 0.


#3

Could you show us your code? It's hard to help when we can't see the problem.


#4

var perimeterBox = function(length, width) {

return (length+length)+(width+width);

};
perimeterBox(1,1);


#5

Love your avatar. What is it?


#6

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=14&cad=rja&uact=8&ved=0ahUKEwiVi9mrxdrOAhUKOiYKHUS0ABQQFghCMA0&url=http%3A%2F%2Fgfx-carnage.deviantart.com%2Fart%2Fgreen-cyborg-thing-o-o-349797439&usg=AFQjCNEO38-R2SG5xLFRRzbjvNjw0Q7Dcg


#7

Sorry, datfatcat. Do you mind me giving your avatar link?


#8

Queen by siakim aka Kim Tae Kyeong


#9

Your code seems to be working fine for me when I put in

perimeterBox(0,0);

Maybe use a different browser/refresh.


#10

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