Created
August 14, 2016 15:22
-
-
Save egrueter-dev/3d3a7ef1364e8fc88164b051c0835890 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 button = document.querySelector(‘.button’); | |
buttton.addEventListener(‘click, () => { | |
this.classList.toggle(‘on’); //=> error!!! This is defined globally. | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment