newWidth is not defined


#1



https://www.codecademy.com/courses/spencer-sandbox/2/6?curriculum_id=506324b3a7dffd00020bf661#


newWidth is not defined


Replace this line with your code. 
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 (neWidth){
  this.width = newWidth;  
};
  

// here change the width to 8 and height to 6 using our new methods

rectangle.setWidth(8);
rectangle.setHeight(6);


#2

Just a typo, take a look at name of your parameter:

rectangle.setWidth = function (neWidth){
  this.width = newWidth;  
};

it should be newWidth (w is missing).