Report Bug

QusHow 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.
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad