1.

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.firstChildThis question was posed to me in an international level competition.This is a very interesting question from Comparison of Core JavaScript versus Frameworks in division Caching, Debugging and Animation of JavaScript

Answer» CORRECT choice is (d) timestamp.firstChild

To elaborate: 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.


Discussion

No Comment Found

Related InterviewSolutions