subject
Computers and Technology, 28.06.2020 01:01 Shubbs

Hello! I'm not sure how to do this part of my programming hw? I was hoping someone could help me out, thank you! 1. create a global variable named places. The value of places should be an array, which you should populate with the names of five places of your choice.
2. Below your array definition, create a function with the name processPlaces(). Within the function, create a for statement. It should create a counter variable named i with a starting value of 0. As long as the counter variable is less than 5, it should increment by on each iteration. Each loop of the for statement should perform the following actions:
A. Set the value of the listItem variable to the string "item" concatenated with (i + 1).
B. Change the content of the element with the id equal to the value of the listItem variable to the value of the element in the places array with an index equal to the value of i.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:20
Octothorpe is another name for what common computer keyboard symbol?
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
Acase study allows a more detailed look at the life of a single subject than any other study.
Answers: 3
question
Computers and Technology, 23.06.2019 16:30
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
What are the 12 colors of the spectrum called?
Answers: 1
You know the right answer?
Hello! I'm not sure how to do this part of my programming hw? I was hoping someone could help me out...
Questions
question
Mathematics, 03.11.2020 08:30
question
Mathematics, 03.11.2020 08:30
question
Mathematics, 03.11.2020 08:30
question
Mathematics, 03.11.2020 08:30
question
Geography, 03.11.2020 08:30
Questions on the website: 13722360