the code in the dynamic script does not execute:
var script = document.createElement('div')
script.innerHTML = `<script>alert('asd')<\/script>`
document.body.appendChild(script)
while the code below works:
var div = document.createElement('div')
var script = document.createElement('script')
script.text = `alert('asd')`
div.appendChild(script)
document.body.appendChild(div)
what the different and why?