en.javascript.info/1-js/06-advanced-functions/06-function-object/2-counter-inc-dec/solution.md
Ilya Kantor 97c8f22bbb up
2017-03-21 17:14:05 +03:00

196 B

The solution uses count in the local variable, but addition methods are written right into the counter. They share the same outer lexical environment and also can access the current count.