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 10:00
You need a reliable network for about twenty-five computers that will be distributed across a large building. it is important that the network be relatively cheap. which topology should you use?
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
Write an expression that will cause the following code to print "equal" if the value of sensorreading is "close enough" to targetvalue. otherwise, print "not equal". ex: if targetvalue is 0.3333 and sensorreading is (1.0/3.0), output is:
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
The footer area of a web page generally houses which website feature? terms of use web page content business name or title menu headings
Answers: 1
question
Computers and Technology, 24.06.2019 10:10
Which view in a presentation program displays a split window showing the slide in the upper half and a blank space in the lower half?
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
Social Studies, 21.02.2020 02:53
question
Mathematics, 21.02.2020 02:53
question
Health, 21.02.2020 02:54
Questions on the website: 13722363