Skip to content

Commit ceadbce

Browse files
authored
Update task.md
1 parent f9d5aa4 commit ceadbce

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

  • 1-js/06-advanced-functions/08-settimeout-setinterval/4-settimeout-result

1-js/06-advanced-functions/08-settimeout-setinterval/4-settimeout-result/task.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
importance: 5
1+
важность: 5
22

33
---
44

5-
# What will setTimeout show?
5+
# Что покажет setTimeout?
66

7-
In the code below there's a `setTimeout` call scheduled, then a heavy calculation is run, that takes more than 100ms to finish.
7+
В приведенном ниже коде запланирован вызов `setTimeout`, а затем выполняется сложное вычисление, для завершения которого требуется более 100 мс.
88

9-
When will the scheduled function run?
9+
Когда будет выполнена заплонированная функция?
1010

11-
1. After the loop.
12-
2. Before the loop.
13-
3. In the beginning of the loop.
11+
1. После цикла.
12+
2. Перед циклом.
13+
3. В начале цикла.
1414

1515

16-
What is `alert` going to show?
16+
Что покажет `alert`?
1717

1818
```js
1919
let i = 0;
2020

2121
setTimeout(() => alert(i), 100); // ?
2222

23-
// assume that the time to execute this function is >100ms
23+
// предположим, что время выполнения этой функции >100 мс
2424
for(let j = 0; j < 100000000; j++) {
2525
i++;
2626
}

0 commit comments

Comments
 (0)