Skip to content

Instantly share code, notes, and snippets.

@saturngod
Created August 16, 2011 15:39
Show Gist options
  • Save saturngod/1149382 to your computer and use it in GitHub Desktop.
Save saturngod/1149382 to your computer and use it in GitHub Desktop.
sample node.js function callback
function sum(num1,num2,callback) {
callback(num1+num2);
}
sum(5,4,function(result) {
output=result;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment