Given the code below

```
var rectangleA = {
x: 200,
y: 10,
width: 40,
height: 20,
moveDown: function () {
this.y += 5;
}
};
```

(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();

Computer Science & Information Technology

You might also like to view...

Which of the following is true about private IP addresses?

A. they are assigned by the IANA B. they are not routable on the Internet C. they are targeted by attackers D. NAT was designed to conserve them

Computer Science & Information Technology

A(n) ____________________ is a place on a web page that gives viewers a means of contacting the company if they have questions or problems.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Panels open by default in the selected workspace when you start Flash.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Describe the AMD Accelerated Processing Unit (APU).

What will be an ideal response?

Computer Science & Information Technology