subject

Declare a variable using var named hobbies and set it equal to an array with three strings inside of it. Use window. alert to show the contents of hobbies. Create a new variable myHobby and set it equal to the first element in the array. Set the innerHTML of the the HTML element with the id of hx to the myHobby variable. Now, set the innerHTML of the HTML element with the id of hz to the the third element in the hobbies array using bracket notation to access the element. Do this on a single line, not create a variable for either the li element or the array value before you write it. Awesome, you can access each element in an array using the index. But what happens if you try to access an index that is beyond the last element

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
question
Computers and Technology, 24.06.2019 00:40
What social factors affect your health
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
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?
Declare a variable using var named hobbies and set it equal to an array with three strings inside of...
Questions
question
Mathematics, 28.09.2019 16:30
Questions on the website: 13722361