subject

Javascript function: we will add a user input that asks the user to enter the number of job duties that they want to see that you preformed at your previous job. When the user clicks a button, a function will be called and will then take this input and use it to specify an index number of an array that will be the starting point of the array values (duties) to be displayed. Through looping, we will then subtract 1 from the index number until it reaches 0 and display all of the values that are associated with the index numbers that were calculated during the loop. Create an input that acts as a fill in the blank for a sentence that prompts the user to enter the number of job duties they want to see. Create a button that calls a function when clicked (the function created in the next step) Crate a function that takes the user input and assigns the value to a variable. Create an array with at least five job duties in it. ( cooking, cleaning, organizing, getting groceries and walking dog) 5. Create a while loop that runs while the variable (that represents the index value that we want to print) is greater than or equal to the minimum array value. Within the while loop have two things happen. Have the innerHTML of some element within your page be replaced with the array value that corresponds to the index number that we want printed You specify the array value by the format arrayname[indexnumber] Have the index subtract one from itself to count down At this point your function should run, but it does not work properly. Only the array value at the last index is printed. To fix this, we need to concatenate the results of the loop. i. Create a new variable outside of the loop and set it to be equal to blank (You do this by setting it equal to "") Within the loop, make this variable to be equal to itself plus the array value that we want printed. Now change the innerHTML to be equal to this variable.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:00
What ordering of tcp flags makes up the three-way handshake?
Answers: 2
question
Computers and Technology, 22.06.2019 12:10
1. declare a constant named cents_per_pound and initialize with 25. 2. get the shipping weight from user input storing the weight into shipweightpounds. 3. using flat_fee_cents and cents_per_pound constants, assign shipcostcents with the cost of shipping a package weighing shipweightpounds.
Answers: 2
question
Computers and Technology, 22.06.2019 15:00
I'm taking a class on how to make a movie, and it offers some apps that would be in the process. the thing is, i don't have any of those ha. if you have any tips on some apps i could use, that would be awesome. i don't have an iphone, so don't suggest any apps like imovie. i know that this is a weird question, but it would be super for me. : )
Answers: 2
question
Computers and Technology, 22.06.2019 15:30
Why would a programmer use the logical operator and in an if statement? a: when an action is to be taken that requires both conditions to be falseb: when an action is to be taken that requires both conditions to be truec: when an action is to be taken that requires the first condition to be falsed: when an action is to be taken that requires the second condition to be truei took the test and the answer is b.
Answers: 3
You know the right answer?
Javascript function: we will add a user input that asks the user to enter the number of job duties t...
Questions
question
Health, 06.05.2020 00:44
question
Chemistry, 06.05.2020 00:44
question
Mathematics, 06.05.2020 00:44
Questions on the website: 13722367