Skip to content

Instantly share code, notes, and snippets.

@cjohansen
Created September 2, 2010 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjohansen/562124 to your computer and use it in GitHub Desktop.
Save cjohansen/562124 to your computer and use it in GitHub Desktop.
$(function() {
function test(a, b, callback) {
setTimeout(function() {
callback(a + b);
}, 2000);
}
test(1, 2, function(response) {
alert(response);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment