А что здесь происходит? Почему у нас не продолжается увеличение счётчика?
var anotherFunction = outer(); // myNewFunction = incrementCounter
anotherFunction();
anotherFunction();
А что здесь происходит? Почему у нас не продолжается увеличение счётчика?
var anotherFunction = outer(); // myNewFunction = incrementCounter
anotherFunction();
anotherFunction();