Skip to content

Instantly share code, notes, and snippets.

@enricopolanski
Created December 12, 2017 18:39
Show Gist options
  • Save enricopolanski/3addf3daf8269843dba4a403258977b9 to your computer and use it in GitHub Desktop.
Save enricopolanski/3addf3daf8269843dba4a403258977b9 to your computer and use it in GitHub Desktop.
let x function(){
console.log("i am called from inside a function")
};
let y = function(callback){
console.log("do something");
callback();
};
y(x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment