What will be displayed after the following code is executed?
```
1. var myName = "Rover";
2. function myPet()
3. {
4. var myName = "Spike";
5. document.write(myName);
6. }
7. document.write(myName);
```
a. Rover
Spike
b. Spike
Rover
c. Rover
Rover
d. Spike
Spike
b. Spike
Rover
You might also like to view...
The pseudo-class _____ matches check boxes or option buttons whose toggle states (checked or unchecked) cannot be determined.
A. indeterminate B. checked C. invalid D. required
Which of the following is an example of a wireless PAN technology?
A. Universal Serial Bus B. fiber-optic media C. Bluetooth D. satellite communication
Editing and deleting records can only be done directly in a table
Indicate whether the statement is true or false
The values Excel uses to evaluate a function are known as ________
A) syntax B) function guidelines C) commands D) arguments