Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Which method is used to compare the placement of two nodes in the DOM hierarchy (document)?

  2. A.

     compareDocumentPosition()

    B.

     cloneNode()

    C.

     getUserData()

    D.

     getFeature()

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    The compareDocumentPosition() method is used to compare the placement of two nodes in the DOM hierarchy (document).


Be The First To Comment