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


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.


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


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


var perimeterBox = function(length, width) {

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



Love your avatar. What is it?




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


Queen by siakim aka Kim Tae Kyeong


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


Maybe use a different browser/refresh.


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