Q68
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;
AnswerAnswer: Option D
Solution
Answer: Option D
Solution:
Removing attributes and tags is very easy with the standard delete operator :
delete pt..weight; //delete all tags