In the answers to this question, we read that function f() {} defines the name locally, while [var] f = function() {} defines it globally. That makes p
The second syntax is therefore nicer when you're using functions to modularize and organize your code, whereas the first syntax is nicer for the functions-as-data paradigm.