Created
August 2, 2016 17:52
-
-
Save VictorMedeiros/b74d67eb0145c5b173d7588c27e17be7 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
var button = document.getElementById('myButton'); | |
button.addEventListener('click', () => { | |
console.log(this === window); // => true | |
this.innerHTML = 'Clicked button'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment