mirror of
https://github.com/getify/You-Dont-Know-JS.git
synced 2025-04-07 14:31:57 +08:00
Typo: insert omitted 'function' keyword
This commit is contained in:
parent
f6e1e05bc2
commit
7dec66e0f7
@ -153,7 +153,7 @@ Now let's examine an example where the closed-over variable is updated:
|
|||||||
function makeCounter() {
|
function makeCounter() {
|
||||||
var count = 0;
|
var count = 0;
|
||||||
|
|
||||||
return getCurrent(){
|
return function getCurrent() {
|
||||||
count = count + 1;
|
count = count + 1;
|
||||||
return count;
|
return count;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user