Skip to content

Instantly share code, notes, and snippets.

@ryands
Created March 28, 2014 22:07
Show Gist options
  • Save ryands/9844003 to your computer and use it in GitHub Desktop.
Save ryands/9844003 to your computer and use it in GitHub Desktop.
throwaway gist
var addition = function(a, b, callback) {
var result = a + b;
if (callback != null) {
callback(result);
}
};
addition(2, 3, function(result) {
alert("The sum is " + result + "!");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment