What does the nodeName of the nodeType Document return?
A
doctype name
B
target
C
#comment
D
#document
Correct Answer: #document
The nodeName of the nodeType Document returns #document. If the node is an element node, the nodeName property will return the tag name. If the node is an attribute node, the nodeName property will return the name of the attribute.