Vidyalelo
JavaScript · Q116

Document Object Model And Event Handling

Programming · JavaScript · question 116

Q116

Which of the following Node object property returns the node immediately before a node?

A.
previousSibling
Answer
B.
textContent
C.
index
D.
localName

Answer: Option A

Solution

Answer: Option A
Solution:
The node object property previousSibling returns the node immediately before a node.