I was solving a puzzle on JS and I found this code:
var xx = (function () {
var e = 0;
return function () { return e++ }
})();
It was asked what will be the value of xx.
I've googled about funcitons that return function, but could not find anything helpful, I'm not pretty familiar with functions that return function. Please help.