{"version":"1.0","type":"rich","title":"Dice - ES Modules","description":"This example demonstrates how JavaScript ES Modules enable code reuse by separating dice-rolling logic into an external file. The page imports the `d6` and `d20` functions from `roll.js`, rolls one six-sided and one twenty-sided die, and logs the results to the browser console. The `roll.js` module defines dice arrays and uses a shuffle function to randomly select values, exporting seven dice types (`d2` through `d20`). The HTML file contains only minimal styling and a script tag with `type=\"module\"`, highlighting the modular import/export pattern without any visual output.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-df2774b02ecc433db84e73b80f1efe48?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}