classlist contains javascript

classlist contains javascript

So did className.split(' ') which is effectively the same. Remove class JavaScript. contains(): The contains() method of the JavaScript classList property is used for returning the Boolean value as an output. So in our example, it selects the first