<script>
function addTextToBody(text) {
const div = document.createElement('div');
div.textContent = text;
document.body.appendChild(div);
}
</script>
<script type="module">
addTextToBody("Inline module executed");
</script>
<script src="/demos/es-modules-in-browsers/1.js"></script>
<script defer>
addTextToBody("Inline script executed");
</script>
<script defer src="/demos/es-modules-in-browsers/2.js"></script>
body{margin:2rem}