HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-03-09
1 <p>Muffin liked how you coped with the puncher store task and entrusted you with one more combat mission.</p>
1 <p>Muffin liked how you coped with the puncher store task and entrusted you with one more combat mission.</p>
2 <blockquote><p>Meow! We must display the current state of the products on the store website: “in stock”, “not available”, “bestseller”.</p>
2 <blockquote><p>Meow! We must display the current state of the products on the store website: “in stock”, “not available”, “bestseller”.</p>
3 <p>Product data is stored in an array with assortmentData objects, each object corresponds to one product and contains the following properties:</p>
3 <p>Product data is stored in an array with assortmentData objects, each object corresponds to one product and contains the following properties:</p>
4 <ul><li>inStock: if the value is true, ice cream is available, if it is false, the products is out of stock.</li>
4 <ul><li>inStock: if the value is true, ice cream is available, if it is false, the products is out of stock.</li>
5 <li>isHit: if the value is true, the ice cream is the most popular among customers.</li>
5 <li>isHit: if the value is true, the ice cream is the most popular among customers.</li>
6 </ul><p>Each product state corresponds to a special class:</p>
6 </ul><p>Each product state corresponds to a special class:</p>
7 <ul><li>Product in stock: good--available.</li>
7 <ul><li>Product in stock: good--available.</li>
8 <li>Unavailable product: good--unavailable.</li>
8 <li>Unavailable product: good--unavailable.</li>
9 <li>Bestseller: good--hit.</li>
9 <li>Bestseller: good--hit.</li>
10 </ul><p>Design the code as the updateCards function, which accepts data arrays. Call it by transferring assortmentData.</p>
10 </ul><p>Design the code as the updateCards function, which accepts data arrays. Call it by transferring assortmentData.</p>
11 </blockquote><p>Press Hey boss, here’s your program! to call the Boss. He will check if your program is working correctly. Good luck!</p>
11 </blockquote><p>Press Hey boss, here’s your program! to call the Boss. He will check if your program is working correctly. Good luck!</p>