What's wrong now?

here's my error message

ReferenceError: newWidth is not defined


Oops, try again. It looks like you have an error in your code. Here's the message: ReferenceError: newWidth is not defined

What's wrong with my syntax?

rectangle.setWidth = function(newWidth)....


Your parameter for setWidth function doesn't match with the one you're assigning to this.width. You forgot to use the camel-case.
rectangle.setWidth = function(newWidth){
this.width = newWidth;


what is camel-case again? I forget that... :confused:


I switched the rectangle at the end of the code and it passed.


You can know about camel case here.


ok like how in Javascript you would type setWidth?


4 posts were split to a new topic: Sally and Holden problem


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