Possible Duplicate:
Javascript: var functionName = function() {} vs function functionName() {}
Every now and again I see examples of JS code where an anonymous function is stored in a variable:
var foo = function() { some expression }
What does this let me do that
function foo() { some expression }
can't accomplish?