Source Code:
(back to article)
Submit
Result:
Report an issue
<body> <div id="container"></div> </body> <script> const div = document.getElementById("container"); let textNode = document.createTextNode('Here is some text'); div.appendChild(textNode); </script>