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

Computer Science & Information Technology

You might also like to view...

When using a 1-way cipher, who knows your password?

a. only you b. you and your administrator c. you, your parents, and your administrator d. ou, your administrator, and the government

Computer Science & Information Technology

Cost ____________________ is the process of preventing the financial impact of an incident by implementing a control.

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

Computer Science & Information Technology