HTML DOM Element appendChild()
HTML DOM Element appendChild() Method
The appendChild() method is used to append node i.e, element as the last child of an element.
Syntax:-
Its syntax is:- element.appendChild(node) OR node.appendChild(node)
Return:-
Its return is:- appended node
Further Explanation:-
Parameter | Description |
node | Required. The node to append. |