Closure and Arrow function
Code\n\nconst createCounter = n => {\n    let count = n, i = -1\n    return () => count + ++i;\n};\n
# Code\n```\nconst createCounter = n => {\n    let count = n, i = -1\n    return () => count + ++i;\n};\n```
['JavaScript']