Use document.createComment ().
document.body.prepend(document.createComment('helloworld'));
As indicated above, we added a comment node at the top of body sub-elements: <-! Helloworld ->
Use document.createComment ().
document.body.prepend(document.createComment('helloworld'));
As indicated above, we added a comment node at the top of body sub-elements: <-! Helloworld ->