appendNode(newNode: Node, parentNode?: Node): void
Appends a node to the parent, if provided, or the document.body otherwise.
Parameters
newNode: Node
The node to append.
parentNode?: Node
The node to append to, otherwise the document.body.