News

Today I learned about the classList.toggle() method in JavaScript, which makes it trivial to add or remove a class from an element dynamically: This is has been widely supported in browsers since 2015 ...