x = 0; F = function (x) { return function () {return x;} } f = F(x); x = 1; f();
Output