how to toggle between two classes in javascript code example
Example: js toggle multiple classes
const toggleCSSclasses = (el, ...cls) => cls.map(cl => el.classList.toggle(cl))
const toggleCSSclasses = (el, ...cls) => cls.map(cl => el.classList.toggle(cl))