Created
March 24, 2019 17:54
-
-
Save h26k2/c4407ef9fe2b668548b13e037584ab66 to your computer and use it in GitHub Desktop.
Using foreach loop on html elements in js
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
Array.prototype.forEach.call(btns,(btn)=>{ | |
alert("button"); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment