Report Bug
Qus : How do you append a new child element to an existing element in the DOM?
Qusआप DOM में किसी मौजूदा तत्व में नया चाइल्ड तत्व कैसे जोड़ते हैं?

A. element.appendChild()
B. element.insertChild()
C. element.addChild()
D. element.attachChild()


Solution
A. element.appendChild()



Explanation
The appendChild() method adds a new child node to an existing node. It appends the new node as the last child of the specified element.



Report Bug