DEV Community

Chittoji Murali Sree Krishna
Chittoji Murali Sree Krishna

Posted on

Dark mode Toggle vanilla js


onclick toggle class and also changing the content of h1 tag,
later chnaging the text if the class name is not assigned to dark.

Top comments (0)