Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is the question which needs to be done in js files.Here is the screenshot of my data,js file Here is the solution how it

image text in transcribed This is the question which needs to be done in js files.Here is the screenshot of my data,js file image text in transcribed

Here is the solution how it looks like image text in transcribed Thanks in advance.

Step 2: 1. Step 2 solution should modify ONLY page1.js and page1.css 2. Using the class definition to create Product (available in data.js), create 6 products with properties as shown in the solution: product number, description, available quantity, price and fee. 3. Place the above created objects into an array called products. 4. Write a function getShuffledUniquelmageNames(myArrayOfimages) that returns an array of random image names without duplicates. Remember, that all image names are available in the array pictures. Be sure that the original pictures array is not changeo 5. Write a function productionTableWithParameters( arrayOfProducts, arrayOfPictureNames) that returns a string to create an HTML table. This function has to use a loop 6.The second last column Total should contain the total amount of inventory for a given product. 7. The last column Image should contain a random image obtained by using the getShuffledUniquelmageNames function so that there are no repeated images 8. If a product has a non-zero fee, highlight the corresponding fee table element. 9. If a product quantity is zero (i.e. no stock), highlight the corresponding quantity table element. 10. The last row should show calculated total quantity and cost of total inventory 11. Obtain the DOM element and call the above functions so that the table is properly displayed

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

Step: 3

blur-text-image

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

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions