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 22:00
During physical science class ben and jerry connected three identical lightbulbs in parallel to a battery where happens when ben removes one of the lightbulbs from it’s socket
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
You can apply several different worksheet themes from which tab?
Answers: 1
question
Computers and Technology, 24.06.2019 06:30
Me and category do i put them in because this is science
Answers: 1
question
Computers and Technology, 24.06.2019 17:30
Click on the tab on the ribbon to open the backstage view. file view insert review
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
History, 13.02.2020 18:46
Questions on the website: 13722367