MCQ Answer

How do you append a new child element to an existing element in the DOM?

How do you append a new child element to an existing element in the DOM?

आप DOM में किसी मौजूदा तत्व में नया चाइल्ड तत्व कैसे जोड़ते हैं?
Topic : JS DOM Manipulation

A. element.appendChild()

B. element.insertChild()

C. element.addChild()

D. element.attachChild()




Correct Answer is :

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.
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