typo fixes
This commit is contained in:
parent
f6f6b20178
commit
c6803faefd
3 changed files with 8 additions and 8 deletions
|
@ -24,7 +24,7 @@ function makeCounter() {
|
|||
|
||||
var counter = makeCounter();
|
||||
|
||||
// каждый вызов увеличивает счётчик и возвращает результат
|
||||
// каждый вызов возвращает результат, увеличивая счётчик
|
||||
alert( counter() ); // 1
|
||||
alert( counter() ); // 2
|
||||
alert( counter() ); // 3
|
||||
|
@ -49,7 +49,7 @@ function makeCounter() {
|
|||
},
|
||||
|
||||
reset: function() {
|
||||
currentCount = 0;
|
||||
currentCount = 1;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue