Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What is the code snippet to change the class and let the stylesheet specify the details?

  2. A.

     timestamp.className = "highlight";

    B.

     timestamp.className = "change";

    C.

     timestamp.className = "specify";

    D.

     timestamp.className = "move";

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    The above code snippet changes the class and lets the stylesheet specify the details.


Be The First To Comment