appendChild

fun <T : Node> appendChild(node: T): T(source)

The appendChild() method of the Node interface adds a node to the end of the list of children of a specified parent node.

MDN Reference