Login and Register ×
Check your Email for the OTP
JavaScript MCQ Javascript DOM & Event Handling MCQ
⚠ Report ✓ Question Verified Copy Link
Explanation:
To compare the positions of two nodes in the DOM hierarchy, use the compareDocumentPosition() function (document). The returned response is an integer whose bits denote the relationship between the caller node and other nodes in the document.
Related Topic:
Share Above MCQ
Learn More MCQ Questions from JavaScript MCQ Javascript DOM & Event Handling MCQ