js in html element code example
Example 1: html script element
<script>
document.getElementById("mycoolelement").innerHTML = "What up?";
</script>
Example 2: java script remowechild an element from the DOM
let node = document.getElementById("nested");
if (node.parentNode) {
node.parentNode.removeChild(node);
}