4 ms·
You also do not need it in JavaScript. var x = function y() { ... y(); ... } 'y' is only bound within the function and allows the function
by linuxhansl 16y ago
You also do not need it in JavaScript.
var x = function y() {
...
y();
...
}
'y' is only bound within the function and allows the function to refer to itself. I.e. you can have anonymous, recursive functions, which is useful in "memberfunctions".
Actually the more common
function f() {}
is identical to
var f = function f() {}
and not
var f = function() {}
Edit: Of course there's also arguments.callee...