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 21:30
Ajeweler designing a pin has decided to use five stones chosen from diamonds, rubies, and emeralds. in how many ways can the stones be selected?
Answers: 3
question
Computers and Technology, 23.06.2019 21:30
Enzo’s balance sheet for the month of july is shown. enzo’s balance sheet (july 2013) assets liabilities cash $600 credit card $4,000 investments $500 student loan $2,500 house $120,000 mortgage $80,000 car $6,000 car loan $2,000 total $127,100 total $88,500 which expression finds enzo’s net worth?
Answers: 1
question
Computers and Technology, 24.06.2019 07:50
Write a defining table and then a program that determines if you can sleep in or not. your program should get all its input from your computer’s clock. on all weekdays (monday through friday) that are not holidays, your program should output “get up! ” on all other days (weekends and holidays), your program should output “sleep in.” the three holidays that your program must check for are january 1 (new year’s day), july 4 (u.s. independence day), and december 25 (christmas). you don’t need to include other holidays in your program because most other holidays do not occur on a fixed day each year.
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
Your is an example of personal information that you should keep private.
Answers: 1
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
Mathematics, 06.10.2021 02:20
question
Mathematics, 06.10.2021 02:20
question
Mathematics, 06.10.2021 02:20
Questions on the website: 13722359