4 ms·
Are you really going to write "var getData = function getDataF () { };" instead of "function getData() {}" for pseudo benefits li
by avodonosov 13y ago
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.
?
- rnd33 13y agoAgreed, and what exactly is the baggage traditionally associated with functions and scope that you avoid by using a function expression?