Skip to content

Commit 7b6ed2e

Browse files
authored
Merge pull request iliakan#576 from GaidaiAndrii/patch-1
add 'return value;' to returned function. row194.
2 parents 67279f3 + da367ca commit 7b6ed2e

File tree

1 file changed

+1
-1
lines changed
  • 1-js/5-functions-closures/6-memory-management

1 file changed

+1
-1
lines changed

1-js/5-functions-closures/6-memory-management/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function showTime() {
191191
function f() {
192192
var value = Math.random();
193193
194-
return function() {};
194+
return function() { return value; };
195195
}
196196
197197
// 3 функции, каждая ссылается на свой объект переменных,

0 commit comments

Comments
 (0)