Last active
August 11, 2021 14:32
-
-
Save apelmahmudDev/3148c072923250740cdf9a94d2707108 to your computer and use it in GitHub Desktop.
Event-bubble
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
document.querySelector('#signup').addEventListener('click', () => { | |
console.log('Sign up button click'); | |
}); | |
document.querySelector('#signin').addEventListener('click', () => { | |
console.log('Sign in button click'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
event-example 2