Vidyalelo
JavaScript · Q117

Caching And Debugging

Programming · JavaScript · question 117

Q117

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

A.
timestamp.className = "highlight";
Answer
B.
timestamp.className = "change";
C.
timestamp.className = "specify";
D.
timestamp.className = "move";

Answer: Option A

Solution

Answer: Option A
Solution:
The above code snippet changes the class and lets the stylesheet specify the details.