What is the code required to delete all “weight” tags? ; c) delete pt; d) delete pt..weight;

What is the code required to delete all “weight” tags? ; c) delete pt; d) delete pt..weight; Correct Answer all

Delete is a keyword in javascript which is used for deleting objects ,pointers and variables. Removing attributes and tags is very easy with the standard delete operator : delete pt..weight; //delete all tags

Related Questions