Referencing the array you created in Exercise 4, write a for loop that iterates through the array displaying “I have visited” followed by the name of each city.

What will be an ideal response?

```
for (var i=0; i < cities.length; i++) {
myList = myList +"I have visited " + cities[i] + "\n";
}
```

Computer Science & Information Technology

You might also like to view...

A network consultant arrives at a customer's site to troubleshoot their email server. The server is running a Linux operating system, but the consultant is only familiar with Windows operating systems. Which of the following troubleshooting steps should the consultant take?

A. Document findings B. Identify the problem C. Escalate the problem D. Establish a plan of action

Computer Science & Information Technology

What are 3G and 4G used to describe?

A. transfer rates B. standards for mobile communications C. ISP services D. types of mobile hotspots

Computer Science & Information Technology