Make Your Own Method Please HELP


#1



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 =functionm(newWidth){
    this.width=newWidth;
};
 rectangle.setHeight(6);
 rectangle.setWidth(8);

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


#2

Hi here ...

rectangle.setWidth =functionm(newWidth)

you wrote functionm instead of function


#3

thanks for helping me:)