Using post increment
\n\n\n    var createCounter = function(n) {\n    return function() {\n        return n++;\n     };\n    };
\n\n\n    var createCounter = function(n) {\n    return function() {\n        return n++;\n     };\n    };
['JavaScript']