Hallo MudGuard,
was passiert eigentlich hier?
let q = 17;
let x = do {
let y = { test: 1, pest: 2 };
let z = { test: 7, pest: 8 };
if (q == 17)
function(i) { return z[i]; }
else
function(i) { return y[i]; }
};
alert(x('test'));
Hab ich da jetzt eine Closure geschnürt?
Rolf
--
sumpsi - posui - clusi
sumpsi - posui - clusi