You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/06-advanced-functions/08-settimeout-setinterval/4-settimeout-result/task.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,25 +2,25 @@ importance: 5
2
2
3
3
---
4
4
5
-
# What will setTimeout show?
5
+
# Cosa mostrerà setTimeout?
6
6
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
+
Nel codice qui sotto è pianificata una chiamata con `setTimeout`, poi viene eseguito un calcolo pesante, che richiede più di 100ms per essere completato.
8
8
9
-
When will the scheduled function run?
9
+
Quando verrà eseguita la funzione pianificata?
10
10
11
-
1.After the loop.
12
-
2.Before the loop.
13
-
3.In the beginning of the loop.
11
+
1.Dopo il loop.
12
+
2.Prima del loop.
13
+
3.All'inizio del loop.
14
14
15
15
16
-
What is `alert` going to show?
16
+
Cosa mostrerà l'`alert`?
17
17
18
18
```js
19
19
let i =0;
20
20
21
21
setTimeout(() =>alert(i), 100); // ?
22
22
23
-
//assume that the time to execute this function is >100ms
23
+
//ipotizza che il tempo necessario a eseguire questa funzione sia >100ms
0 commit comments