Axel Rauschmayer wrote:
... was surprised to find out that the majority of people prefer var + function expression to a function declaration, because then there is only a single kind of function definition.

Small-N survey, right? Opinios vary widely. However, try a code search for 'var [A-Za-z_][A-Za-z_0-9]* = function' vs. 'function [A-Za-z_]'. The latter predominates (of course this leaves out other uses of 'function').

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to