Vidyalelo
JavaScript · Q61

Server

Programming · JavaScript · question 61

Q61

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

Answer: Option D

Solution

Answer: Option D
Solution:
The first child of a node can be accessed using the firstChild property.