Question: creat an html /javascript code to do the following 1- Create an array of objects named items which contains two properties item and it's price

creat an html /javascript code to do the following creat an html /javascript code to do the following 1- Create an

1- Create an array of objects named items which contains two properties "item" and it's "price" with the values : ("burger", 4), ("coffee", 1.5), "juice", 0.5) 2- Sort array items in ascending order based on the price values 3- Add "Print Items" Button, which when clicked displays the array values as "ordered list". 4-Add "MinPrice" button, which when clicked prints the item with the minimum price. Hint ("You don't need to use loop') The following screenshot is a sample workflow that may help you understand the script behavior 5 (8 Points) Main output buttons Print items min price The Output if "print items "clicked : The Output if "max discount "is clicked 1. item is juice, price is 0.5 2. item is coffee, price is 1.5 3. item is burger, price is 4 the item with minimum price is juice

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!