Skip to content

Commit 6ca78e8

Browse files
authored
Merge pull request iliakan#338 from Markovskiy/patch-1
Update article.md
2 parents 2658425 + 807a394 commit 6ca78e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

1-js/5-functions-closures/2-closures/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,18 @@ sayHi.[[Scope]] = window
119119
```js run no-beautify
120120
var phrase = 'Привет';
121121
122-
function say(name) {
122+
function sayHi(name) {
123123
alert(phrase + ', ' + name);
124124
}
125125
126126
*!*
127-
say('Вася'); // Привет, Вася (*)
127+
sayHi('Вася'); // Привет, Вася (*)
128128
*/!*
129129
130130
phrase = 'Пока';
131131
132132
*!*
133-
say('Вася'); // Пока, Вася (**)
133+
sayHi('Вася'); // Пока, Вася (**)
134134
*/!*
135135
```
136136

0 commit comments

Comments
 (0)