Vidyalelo
JavaScript · Q114

Document Object Model And Event Handling

Programming · JavaScript · question 114

Q114

What is the property textContent?

A.
Sets the textual content of a node
B.
Returns the textual content of a node
C.
Sets & Returns the textual content of a node
Answer
D.
None of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
The property textContent sets or returns the textual content of a node and its descendants.