Vidyalelo
JavaScript · Q123

Document Object Model And Event Handling

Programming · JavaScript · question 123

Q123

What is the purpose of the method item()?

A.
Returns node after the specified index
B.
Returns node before the specified index
C.
Returns node at specified index
Answer
D.
None of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
The method item() returns the node at the specified index in a node list.