mirror of
https://github.com/getify/You-Dont-Know-JS.git
synced 2025-04-05 21:51:19 +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() {
|
||||
var count = 0;
|
||||
|
||||
return getCurrent(){
|
||||
return function getCurrent() {
|
||||
count = count + 1;
|
||||
return count;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user