How to associate an object to a key on a node?
A
getUserData()
B
cloneNode()
C
setUserData(key,data,handler)
D
clonedata()
Correct Answer: setUserData(key,data,handler)
The Node.setUserData() method allows a user to attach (or remove) data to an element, without needing to modify the DOM. This method is used to associate an object to a key on a node.