Challenge 1 — Solution Task: Given const stock = { apples: 10, bananas: 5, oranges: 8 }, use Object.entries and a for...of loop with destructuring to log each item as "item: quantity", then use Object.values combined with reduce to log the total quantity. const stock = { apples: 10, bananas: 5, oranges: 8 }; for (const [item, quantity] of Object.entries(stock)) { console.log(`${item}: ${quantity}`); } const total = Object.values(stock).reduce((sum, quantity) => sum + quantity, 0); console.log(`Total: ${total}`); Expected output: apples: 10 bananas: 5 oranges: 8 Total: 23 Notes: - Object.entries(stock) returns [["apples", 10], ["bananas", 5], ["oranges", 8]] — each pair destructures directly into item and quantity inside the for...of loop. - Object.values(stock) skips the keys entirely and returns just [10, 5, 8], which reduce then sums in one expression — no manual running-total variable needed, unlike the Fundamentals Chapter 7 version of this same task. - This produces identical results to a for...in loop with bracket notation, just with less manual bookkeeping.