Created
December 14, 2018 01:46
-
-
Save oneEyedSunday/b05d6b6b300a304ed38cc9063febfb9e 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
function hookupevents(){ | |
for(var i = 0; i < 3; i++){functon(index){ | |
document.getElementsById("button" + index).addEventListener('click', function() {alert (index)}) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment