Bug report: parser incompetent


#1

Number 18:

> var rectangle = new Object();
> rectangle.height = 3;
> rectangle.width = 4;

> // here is our method to set the **length**
> 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 **length** to 6 using our new methods
> //rectangle.setHeight = setHeight;
> //rectangle.setWidth = setWidth;
> rectangle.setHeight(6); 
> rectangle.setWidth(8);

All instances of length count as the keyword length despite it being commented out. Could someone fix this bug please?


#2

@455nefer Your code looks good. May be a browser related issue. What browser are you using?


#3

Chrome. Chrome chrome chrome Google Chrome.

God I love that browser.


#4

Try another real quick, just for this lesson :slight_smile: