Skip to content

Commit 64e1646

Browse files
committed
fix tabs
1 parent 62676dd commit 64e1646

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

  • 1-js/06-advanced-functions/07-new-function

1-js/06-advanced-functions/07-new-function/article.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ func();
5353
```js run
5454

5555
function getFunc() {
56-
let value = "test";
56+
let value = "test";
5757

58-
*!*
59-
let func = new Function('alert(value)');
60-
*/!*
58+
*!*
59+
let func = new Function('alert(value)');
60+
*/!*
6161

62-
return func;
62+
return func;
6363
}
6464

6565
getFunc()(); // ошибка: значение не определено
@@ -69,13 +69,13 @@ getFunc()(); // ошибка: значение не определено
6969

7070
```js run
7171
function getFunc() {
72-
let value = "test";
72+
let value = "test";
7373

74-
*!*
75-
let func = function() { alert(value); };
76-
*/!*
74+
*!*
75+
let func = function() { alert(value); };
76+
*/!*
7777

78-
return func;
78+
return func;
7979
}
8080

8181
getFunc()(); // *!*"test"*/!*, из лексического окружения функции getFunc

0 commit comments

Comments
 (0)