Function appendChild

  • Append a child to an element.

    Parameters

    • parent: ParentNode

      The element to append to.

    • child: ChildNode

      The element to be added as a child.

    Returns void