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...
When elements in an array are sorted from lowest to highest, the array is sorted in __________ order.
a. numeric b. alphabetic c. ascending d. descending
Match each item with a statement below.
A. cloud-based storage that is provided when you create a Microsoft account B. a popular document format which is also supported as a page description language by some printers C. virtual folders in File Explorer that combine content from multiple locations to simplify file access D. a feature that allows Windows 10 computers to print directly to a printer shared from a printer server rather than sending the print job through the print server E. a location in Windows 10 that caches printer drivers and is capable of storing multiple versions of a printer driver F. allows you to manage the printers for your entire network from a single workstation G. an Internet Explorer and Microsoft Edge feature that warns you about websites known to install malicious software or used in phishing attacks H. an Internet Explorer and Microsoft Edge feature that prevents most popup advertising from being displayed while you browse websites I. an Internet Explorer 11 and Microsoft Edge feature that prevents caching of web content and logging of web activity in Internet Explorer
A user account on a single computer is called a local account
Indicate whether the statement is true or false
An online backup system stores your files on a(n) router. ____________________
Answer the following statement true (T) or false (F)