Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions

Question

1. How does Kiwi Experience maintain a continual customer focus?

Answered: 1 week ago