<script type="module" src="main.js"></script>Using modules on the web / notebook
Using modules on the web
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
<script type="module">
/* JavaScript module code here */
</script>