Vidyalelo
JavaScript · Q59

Caching And Debugging

Programming · JavaScript · question 59

Q59

Which of the following is the method used to add an element to the desired location?

A.
add.element()
B.
element.add()
C.
element.appendChild()
Answer
D.
none of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
The method element.appendChild() is used to add the element to the desired location within the document tree.