Skip to content

Instantly share code, notes, and snippets.

@giancorzo
Created May 22, 2017 20:10
Show Gist options
  • Save giancorzo/38413d5d17866b3a551126c3b1f7194c to your computer and use it in GitHub Desktop.
Save giancorzo/38413d5d17866b3a551126c3b1f7194c to your computer and use it in GitHub Desktop.
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