Vidyalelo
JavaScript · Q45

Parsing, Benchmarking And Logging

Programming · JavaScript · question 45

Q45

What is the purpose of the adoptNode() method?

A.
Removes node
B.
Makes it ready for insertion
C.
Removes node and Makes it ready for insertion
Answer
D.
None of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
This method removes node from whatever document it is currently part of and changes its ownerDocument property to this document, making it ready for insertion into this document.