Skip to content

Instantly share code, notes, and snippets.

@distransient
Last active December 28, 2015 17:39
Show Gist options
  • Save distransient/7537496 to your computer and use it in GitHub Desktop.
Save distransient/7537496 to your computer and use it in GitHub Desktop.
var myfunc1 = function(callback) {
console.log('hello, world');
callback();
}
var myfunc2 = function() {
return 'hello, world';
}
myfunc1(myfunc2);
myfunc1(myfunc2());
var myfunc1 = function(callback) {
console.log('hello, world');
callback();
}
myfunc1(function() { return 'hello, world'; });
myfunc2('hello, world');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment