3 ms·
what's the js equivalent to your example? let code = () => { let count = 0; return ++count } doesn't do the trick
by fouc 8y ago
what's the js equivalent to your example?
let code = () => {
let count = 0;
return ++count
}
doesn't do the trick
- mst 8y agoJS doesn't have the do {} expression form so let code; { let count = 0; code = () => ++count; } or let-over-lambda it and let code = (() => { let count = 0; return () => ++count; })();