Appending in JavaScript

Create text node on document

Document.createTextNode(text);

Append node on Node

Node.appendChild(node);

Remove node on Node

Node.removeChild(node);

Collection of child nodes on Node

Node.childNodes;

Length of child nodes collection

Node.childNodes.length;