Single Choice Easy

QWhat does the method getUserData(key) accomplish?

ID: #5188 Javascript DOM & Event Handling MCQ 107 views
Question Info
#5188Q ID
EasyDifficulty
Javascript DOM & Event Handling MCQTopic

Choose the Best Option

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

  • A Returns the associated object
  • B Gets the user data
  • C Returns the user data
  • D Gets the user key
Correct Answer

Explanation

The object connected to a key on this node is returned by the function getUserData(key).
Calling setUserData with the same key must have been made before setting the object to this node.

Share This Question

Challenge a friend or share with your study group.