What is the purpose of the method createDocumentFragment()?

Ngân Lam

New member
What is the purpose of the method createDocumentFragment()?
A. Creates a fragment object
B. Creates a document fragment
C. Creates imaginary node object
D. Create a node fragment
 
Answer: c
Explanation: The createDocumentFragment() method creates a imaginary Node object, with all the properties and methods of the Node object. DocumentFragments are DOM Nodes. They are never part of the main DOM tree.
 

Tìm kiếm

Back
Top