Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What is the code required to delete all “weight” tags?

  2. A.

     delete weight(pt).all;

    B.

     delete pt.element[all];

    C.

     delete pt;

    D.

     delete pt..weight;

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    Removing attributes and tags is very easy with the standard delete operator :

    delete pt..weight; //delete all tags

    Your file couldn’t be accessed

    It may have been moved, edited, or deleted.

    ERR_FILE_NOT_FOUND

    null

    It may have been moved, edited, or deleted.

     

    Your file couldn’t be accessed

    It may have been moved, edited, or deleted.

    ERR_FILE_NOT_FOUND

    null

    It may have been moved, edited, or deleted.


Be The First To Comment