Vidyalelo
JavaScript · Q46

Document Object Model And Event Handling

Programming · JavaScript · question 46

Q46

Which of the following is/are of Text nodes?

A.
Text
B.
Comment
C.
Both Text and Comment
Answer
D.
None of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
Both Text and Comment are basically strings of text, and these nodes are much like the Text nodes that represent the displaying text of a document.