Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const box = document.querySelector(".box");
const addButton = document.querySelector('#setStyles');
addButton.addEventListener('click', () => {
box.classList.add("active");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment