Node.JS MCQs with Answers

Which method is used to compare the placement of two nodes in the DOM hierarchy (document)?
A)
cloneNode()
B)
compareDocumentPosition()
C)
getUserData()
D)
getFeature()

Correct Answer :   compareDocumentPosition()