Stuck on 18


#1


keeps saying
Oops, try again. Make sure to set rectangle's width to 8!
please help


var rectangle = new Object();
rectangle.height = 3;
rectangle.width = 4;
// here is our method to set the height
rectangle.setHeight = function (newHeight) {
  this.height = newHeight;
};
// help by finishing this method
rectangle.setWidth = function(newWidth){
    this.Width = newWidth;
};
  

// here change the width to 8 and height to 6 using our new methods
rectangle.setWidth(8);
rectangle.setHeight(6);


#2

this line:

this.Width = newWidth;

this.width should be all lowercase letters, since width:

rectangle.width = 4;

is also lowercase.


#3

thank you a lot mate


#4