/// `function f(...) {...}` is (mostly) just a shortcut for /// `var f = function(...) {...}`. They each define a variable /// named `f`, with a function value. var callback = function(x) { log('received "' + x + '"'); } var request = function() { $.get('request', callback); } request();