Question: 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 ,

 1- Create an array of objects named items which contains two

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 "Min Price" 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 (8 Points) Main output buttons Print items min price The Output if "max discount" is clicked The Output If "print items "clicked: the item with musim pace is 1. item is juice, price is 0.5 item is coffee price is 1.5 3 item is burger price is 4

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!