MCQ Answer

How can you retrieve all the child elements of a specific DOM node?

How can you retrieve all the child elements of a specific DOM node?

आप किसी विशिष्ट DOM नोड के सभी चाइल्ड तत्वों को कैसे पुनः प्राप्त कर सकते हैं?
Topic : JS DOM Manipulation

A. element.getChildren()

B. element.childNodes

C. element.getElementsByTagName()

D. element.getChildNodes()




Correct Answer is :

B. element.childNodes



Explanation
The childNodes property returns a NodeList of child elements, including text nodes, comments, and elements. If you want only element nodes, you can use children instead.
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad