A

Admin • 833.24K Points
Coach

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

  • (A) compareDocumentPosition()
  • (B) cloneNode()
  • (C) getUserData()
  • (D) getFeature()

Explanation by: Admin

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.