Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

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

  2. A.

     add.element()

    B.

     element.add()

    C.

     element.appendChild()

    D.

     none of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The method element.appendChild() is used to add the element to the desired location within the document tree.


Be The First To Comment