Created
April 3, 2019 22:29
-
-
Save arturovt/6bcf183d1d64d2404bfd57db4761f78d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const comment = document.createComment(''); | |
document.body.appendChild(comment); | |
const p = document.createElement('p'); | |
const text = document.createTextNode('Hello world!'); | |
p.appendChild(text); | |
comment.parentNode.insertBefore(p, comment.nextSibling); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment