Skip to content

Instantly share code, notes, and snippets.

@austinbv
Created March 16, 2012 03:59
Show Gist options
  • Select an option

  • Save austinbv/2048457 to your computer and use it in GitHub Desktop.

Select an option

Save austinbv/2048457 to your computer and use it in GitHub Desktop.
var fun = function(para1, para2, callback) {
console.log(para1);
callback();
console.log(para2);
}
fun('hello', '!', function(){
console.log('world');
})
// hello
// world
// !
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment