Re:Javascript patterns
by avodonosov on Thursday January 02, 2014 @02:59AM
(#6998669)
Are you really going to write
"var getData = function getDataF () {
};"
instead of
"function getData() {}"
for pseudo benefits like
* 1. Makes it easier to understand "functions as an object".
* 2. It enforces good semicolon habits.
* 3. Doesn't have much of the baggage traditionally associated with functions and scope.
instead of "function getData() {}"
for pseudo benefits like
* 1. Makes it easier to understand "functions as an object". * 2. It enforces good semicolon habits. * 3. Doesn't have much of the baggage traditionally associated with functions and scope.
?