Write a JavaSeript function that performs the following: 1. Define Color Array contains any five colors.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

PLEASE FAST

 

Write a JavaSeript function that performs the following:
1. lefine 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 خزنه في مصفوفةAr r
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.
قم بطباعة المصقوفة في الجدول من خلال الصف الأول والأخير ، ثم اطبع فارغ في بافي خلايا
الجدول ، ولكن قم بتغي ير لون الخلفية لهذه الخلايا الفارغة من مصفوقة الألوان بشكل عشواني
عد د الصفوف والأعمدة في الجدول يساوي عد د العناصر في المصفوفة Ar rx
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 restults through a paragraph on the page
اطبع النتائج من خلال فقرة في الصفحة
6. Call the function through click on any button
قم باسلدعاء الاقتران من خلال النقر على أي زر تقوم بانشائه
7. When elick but ton the result appears as the following:
عند النظر على زر Print تظهر النتائج كالتالي: )عيئة من النتالج(
Transcribed Image Text:Write a JavaSeript function that performs the following: 1. lefine 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 خزنه في مصفوفةAr r 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. قم بطباعة المصقوفة في الجدول من خلال الصف الأول والأخير ، ثم اطبع فارغ في بافي خلايا الجدول ، ولكن قم بتغي ير لون الخلفية لهذه الخلايا الفارغة من مصفوقة الألوان بشكل عشواني عد د الصفوف والأعمدة في الجدول يساوي عد د العناصر في المصفوفة Ar rx 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 restults through a paragraph on the page اطبع النتائج من خلال فقرة في الصفحة 6. Call the function through click on any button قم باسلدعاء الاقتران من خلال النقر على أي زر تقوم بانشائه 7. When elick but ton the result appears as the following: عند النظر على زر Print تظهر النتائج كالتالي: )عيئة من النتالج(
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY