The Difference Between className & classList in JavaScript

Learn the difference between two common JavaScript properties for manipulating CSS classes: className and classList. This article will teach you how to use each property effectively and efficiently.

In today's video we take a look at the differences between the className and classList in property. Both are used to read and change classes on an HTML element, but differ fundamentally.

For your reference, check this out:
https://developer.mozilla.org/en-US/docs/Web/API/Element/classList 

#javascript

className vs. classList in JavaScript: What's the Difference?
8.80 GEEK