☑concise code🔥
\nvar createCounter = function(n) {\n    var counter = -1;\n    return () => {return ++counter + n};   \n};\n\n
```\nvar createCounter = function(n) {\n    var counter = -1;\n    return () => {return ++counter + n};   \n};\n\n```
['JavaScript']