Question: Write a JavaScript function that performs the following: 1. Define Color Array contains any five colors. . . 2. Generate 20 integer random numbers between

 Write a JavaScript function that performs the following: 1. Define Color

Array contains any five colors. . . 2. Generate 20 integer random

Write a JavaScript function that performs the following: 1. Define Color Array contains any five colors. . . 2. Generate 20 integer random numbers between 10 and 60 if the number is multiply of 5 store it into Array named ArrX. 20 5 ArrX 3. Print Array in the table through the first and last row, and print blank in the rest of the cells of the table, but change the background color of these cells from Color Array randomly. The number of rows and columns in the table is equal to the number of elements of the array ArrX. . ArrX 4. Use the following attributes of the table: table {border-spacing:5px;border:green 4px groove;width:60%;} th{padding:20px;border:green 4px groove;} . 5. Print the results through a paragraph on the page 6. Call the function through click on any button . 7. When click button the result appears as the following: : Print : ( ) Sample Output The Result is: 55 15 55 60 1 55 15 55 60 Print The Result is: 20 55 45 55 2 20 55 45 55 55 Print The Result is: 45 30 45 3 45 30 45 Print

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!