Element.append()
accepts bothNode
objects and strings, whereasNode.appendChild()
only acceptsNode
objects.Element.append()
can append several nodes and strings, whereasNode.appendChild()
can only append one node.Element.append()
has no return value, whereasNode.appendChild()
returns the appendedNode
object.