What value is passed to the first parameter?

source file: mySource.js:
```
1. function product(x.y);
2. {
3. var x; var y; var product;
4. product = x * y;
5. return (product);
6. }
```
web page script, assume the file links to mySource.js:
```
1. function math();
2. {
3. var num1 = 3; var num2 = 4;
4. var result = product(num2, num1);
5. document.write(num2 + " X " + num1 + " = " + result);
6. }
7. function product(a.b);
8. {
9. var a; var b; var answer;
10. answer = a * b * b;
11. }
```

a. 4
b. 3
c. a
d. x


a. 4

Computer Science & Information Technology

You might also like to view...

The actual value that you pass to an object via a message is called a parameter.

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

Computer Science & Information Technology

The method is used to display a form as a modal form and give it the focus.

(A) ShowForm (B) ShowDialog (C) ShowModal (D) ShowModalForm

Computer Science & Information Technology

Every computer has an operating system

Indicate whether the statement is true or false

Computer Science & Information Technology

Your boss wants remote access to a server after hours and on weekends to check data. Before you grant access what is important step you should take to protect against possible infection?

A. Create a policy to remove Internet access from the server during off hours B. Set the local antivirus software on the boss computer to update and scan daily C. Educate the manager on safe Internet browsing practices D. Ensure the server is patched with the latest security updates

Computer Science & Information Technology