Examveda
Examveda

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: Option D

Solution(By Examveda Team)

The first child of a node can be accessed using the firstChild property.

Join The Discussion

Related Questions on Server Side and Client Side Scripting

What is the code to print hello one second from now?

A. setTimeout(function() { console.log("Hello World"); }, 1000);

B. setTimeout(function() { 1000, console.log("Hello World"); });

C. setTimeout(function(1000) { console.log("Hello World"); });

D. setTimeout(function() { console.log("Hello World"); });