Possible Duplicate:
JavaScript: var functionName = function() {} vs function functionName() {}
In JavaScript we can say:
function a() {};
Or we could say
var a = function() {};
Can anyone explain to me how exactly these differ, which, if any, is more preferable, and under what circumstances would one use each?
Any links or external reading would also be much appreciated.