Skip to content
Permalink
Browse files

Merge pull request #1648 from bmusin/patch-1

Typo: insert omitted 'function' keyword
  • Loading branch information
getify committed Mar 25, 2020
2 parents f6e1e05 + 7dec66e commit 6af97c8ca7d08ff07666ba767d5c72a0a9cc37cd
Showing with 1 addition and 1 deletion.
  1. +1 −1 scope-closures/ch7.md
@@ -153,7 +153,7 @@ Now let's examine an example where the closed-over variable is updated:
function makeCounter() {
var count = 0;
return getCurrent(){
return function getCurrent() {
count = count + 1;
return count;
};

0 comments on commit 6af97c8

Please sign in to comment.
You can’t perform that action at this time.