3 ms·
I cant seem to be able to run a closure. The editor says: no functions to run. Consider this code: var i = (function () { var k = 1; return function () {
by veidelis 14y ago
I cant seem to be able to run a closure. The editor says: no functions to run.
Consider this code:
var i = (function () {
var k = 1;
return function () {
return ++k;
}
} () );
i();