?
Which method is used to compare the placement of two nodes in the DOM hierarchy (document)?
Answer & Solution
Correct Answer:
Option
A
The compareDocumentPosition() method is used to compare the placement of two nodes in the DOM hierarchy (document).
Join the Discussion
Login to post a comment or share your explanation.
Login