Question: JavaScript language write in HTML a. Declare an empty array named integers b. Write a loop that iterates 50 times. In each iteration of the

JavaScript language write in HTML JavaScript language write in HTML a. Declare an empty array named "integers"

a. Declare an empty array named "integers" b. Write a loop that iterates 50 times. In each iteration of the loop, generate a new random number between 0-50 and insert the value in your array (created above). C. After exiting your loop, display content of your array in an h2 element inside the section element created in your HTML document, where array elements are separated by comma d. Display the content of your array (in an h2 element), where elements of your array are separated by asterisk *** e. Loop through your array and count the instances of number 13 and 29 found in your array. As you are looping through the array, replace each instance of number 4 by your first name and the number 7 by your last name (or * if you do not have a last name). f. After exiting the loop, display result in an h3 element, as shown in example below: Number 13 was found 2 times and number 29 was repeated 4 times in this array Display content of your array (separated by comma) in a new h2 element in the section element in your HTML document

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!