how to add class and remove class using javascript code example
Example: how to remove a class from element with javascript
const div = document.querySelector('div') // Get element from DOM
div.classList.remove('info') // Remove class "info"
const div = document.querySelector('div') // Get element from DOM
div.classList.remove('info') // Remove class "info"