JavaScript challenge.var a = m(m(m()));
var b = m()()();
console.log(a === b);
Write a function m such that the above code outputs "true".
>>62411641
Gonna tryvar m = function () { return m; }
>>62411641
not doing your homework for you
>>62411746
wow fuk u cant help /g/ter?
>>62411746
Yeah, because exploiting language features is typical homework.
>>62411711
kek, and the normalfags claiming JS is not a lisp.
>>62411908
JS is not LISP. It just looks like LISP.
>>62411927
>>62411927
>JS is not a lisp.
>>62411927
>JS is not LISP
>>62411711
Global scope is cheating.
>>62412004
I just use recursive.
function m() {
if (arguments.length > 0) {
return 123;
} else {
return () => () => 123;
}
}
m=$=>$?!!$:$=>$=>!!!$;