Vidyalelo
JavaScript · Q71

Caching And Debugging

Programming · JavaScript · question 71

Q71

What is the purpose of the method nodeMap.setNamedItem()?

A.
Sets ID
B.
Sets attribute node
Answer
C.
Sets element name
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
The method nodeMap.setNamedItem() sets the specified attribute node (by name).