Created
May 22, 2017 20:10
-
-
Save giancorzo/38413d5d17866b3a551126c3b1f7194c 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 callback = () => { | |
console.log('Llamando a mi callback'); | |
} | |
function otraFuncion(callback) { | |
console.log('Ejecutando otra funcion'); | |
callback(); | |
} | |
//Funcion anonima que funciona como callback | |
function otraFuncionAnonima(() => { | |
console.log('Llamando a un callback anonimo'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment