What is the property to access the first child of a node?

What is the property to access the first child of a node?
A. timestamp.Child1
B. timestamp.Child(1)
C. timestamp.Child(0)
D. timestamp.firstChild
 
Answer: d
Explanation: The firstChild property returns the first child node of the specified node, as a Node object. The first child of a node can be accessed using the firstChild property.
 

Tìm kiếm

Back
Top