Single Choice Easy

QWhat is the function item() used for?

ID: #5194 Javascript DOM & Event Handling MCQ 152 views
Question Info
#5194Q ID
EasyDifficulty
Javascript DOM & Event Handling MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Returns node after the specified index
  • B Returns node before the specified index
  • C Returns node at specified index
  • D Returns the node following the specified node
Correct Answer

Explanation

item() returns the node in a node list at the specified index.
The nodes are sorted in the order that they appear in the source code, and the index begins at 0.
A NodeList object is a collection of child nodes of a Node object.

Share This Question

Challenge a friend or share with your study group.