this.element.classList.toggle code example Example: classlist toggle const elementClasses = elementNodeReference.classList;