Report Bug
Qus : Which of the following methods is used to remove a child element from the DOM?
QusDOM से चाइल्ड तत्व को हटाने के लिए निम्नलिखित में से किस विधि का उपयोग किया जाता है?

A. removeElement()
B. removeNode()
C. removeChild()
D. deleteNode()


Solution
C. removeChild()



Explanation

The removeChild() method is used to remove a specified child node from the DOM. It requires a reference to the parent node from which the child will be removed.




Report Bug