Invisible wrote:
> is a lambda function. It does roughly the same thing is
>
> function NONAME(x)
> {
> return 3*x + 5;
> }
>
> in JavaScript. The difference - obviously - is that lambda functions
> don't have names.
JavaScript functions don't need names.
var value = (function (x) {
return 3*x + 5;
})(42);
That actually works.
Post a reply to this message
|