{"version":"1.0","type":"rich","title":"Treasure Chest","description":"Treasure Chest demonstrates a JavaScript module pattern for managing a virtual loot inventory. The page loads with a simple header and paragraph, while all functionality occurs through the console using the custom `TreasureChest` constructor object. This object tracks gold, silver, and bronze counts, offering methods like `addGold`, `addSilver`, and `addBronze` for incrementing values, plus `getLoot` to report totals. A `getRandomLoot` method uses a Fisher–Yates shuffle algorithm to generate randomized loot amounts from 1 to 50. The code employs no external libraries, relying purely on native JavaScript syntax and prototype-based inheritance.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-60141b8f4651d3760ed436b6def3ffd9?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}