Given the code below
```
function Rectangle(x, y)
{
this.x = x;
this.y = y;
this.width = 40;
this.height = 20;
this.moveDown = function ()
{
this.y += 5;
};
}
```
Given the code above and suppose a Rectangle object named rectangleA has been created,
(i) write a statement to change the x value of rectangleA to 150.
(ii) write a statement to invoke the method moveDown() on rectangleA.
(i) rectangleA.x=150;
(ii) rectangleA.movedown();
You might also like to view...
The expressionformat-number(-238.2, '#,##0.0;(#,##0.0)')displays the value -238.2 as _____.
A. ?(238.20) B. ?-238.2? C. ?(238.2) D. ?-238.20
________ properties are settings that control how imported data in cells connect to their source data.
Fill in the blank(s) with the appropriate word(s).