What is the code required to delete all “weight” tags?
A. delete weight(pt).all;
B. delete pt.element[all];
C. delete pt;
D. delete pt..weight;
Answer: Option D
Solution (By Examveda Team)
Removing attributes and tags is very easy with the standard delete operator :delete pt..weight; //delete all tags

Join The Discussion