What are the arguments and parameters in the code snipped?

```
1. var shirt = "blue";
2. var pants = "gray";
3. var clothes = wearIt(shirt, pants);
4. function wearIt( x, y)
5. {
6. var myOutfit = "Today I will wear a " + pants + ?
" shirt and " + shirt + " pants.";
7. return myOutfit;
8. }
9. document.write(clothes);
```

a. arguments: x, y
parameters: shirt, pants
b. arguments: shirt, pants
parameters: x, y
c. arguments: shirt, x
parameters: pants, y
d. arguments: shirt, y
parameters: pants, x

b. arguments: shirt, pants
parameters: x, y

Computer Science & Information Technology

You might also like to view...

Which of the following is an example of an inappropriate use of the company network?

a. Checking competitors' websites to see what products they offer b. Using the web to search for a new job c. Booking a business trip d. Doing a research for a business related project

Computer Science & Information Technology

An attacker has connected to an unused VoIP phone port to gain unauthorized access to a network. This is an example of which of the following attacks?

A. Smurf attack B. VLAN hopping C. Bluesnarfing D. Spear phishing

Computer Science & Information Technology