Last active
March 1, 2021 11:41
-
-
Save vanaf1979/d0a67399a1fe3161c61a954a7e7fe691 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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