Single Choice Easy

QHow can I link an item to a node's key?

ID: #5190 Javascript DOM & Event Handling MCQ 133 views
Question Info
#5190Q ID
EasyDifficulty
Javascript DOM & Event Handling MCQTopic

Choose the Best Option

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

  • A getUserData()
  • B cloneNode()
  • C setUserData(key,data,handler)
  • D clonedata()
Correct Answer

Explanation

Without having to change the DOM, a user can attach (or remove) data from an element using the Node.setUserData() method.
Using this technique, you can link an item to a node's key.

Share This Question

Challenge a friend or share with your study group.