Created
April 4, 2020 00:34
-
-
Save mauriciogc/ec0a81301ecbebbf3699a0a284476710 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
//... | |
const alertMessage = () => { | |
alert('Hello, im a message :)'); | |
}; | |
const foo = () => { | |
alert('Hello, im a foo :)'); | |
}; | |
//Esto es lo que agregamos | |
const btn = document.querySelector('#btnAlert'); | |
btn.onclick = alertMessage; | |
btn.onclick = foo; | |
//... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment