Wes Bos on X: "🔥 If you are trying to add/remove multiple classes from an element, an array spread is the perfect use case here since classList.remove() requires multiple arguments. Instead of
![classList in JavaScript. Have you ever wondered how websites… | by Shivani Mishra | Aug, 2023 | Medium classList in JavaScript. Have you ever wondered how websites… | by Shivani Mishra | Aug, 2023 | Medium](https://miro.medium.com/v2/resize:fit:1000/0*p_vyRpcsmBT9NJcT.jpg)
classList in JavaScript. Have you ever wondered how websites… | by Shivani Mishra | Aug, 2023 | Medium
![javascript - classList.add(), classList.remove(), and classList.toggle() not actually changing the classList - Stack Overflow javascript - classList.add(), classList.remove(), and classList.toggle() not actually changing the classList - Stack Overflow](https://i.stack.imgur.com/76weM.png)