回答編集履歴
1
ちょうせい
test
CHANGED
@@ -8,25 +8,25 @@
|
|
8
8
|
|
9
9
|
setTimeout(()=>{
|
10
10
|
|
11
|
-
onFirst();
|
12
|
-
|
13
11
|
resolve();
|
14
12
|
|
15
13
|
}, 2000);
|
16
14
|
|
17
15
|
});
|
18
16
|
|
17
|
+
onFirst();
|
18
|
+
|
19
19
|
await new Promise(resolve=>{
|
20
20
|
|
21
21
|
setTimeout(()=>{
|
22
|
-
|
23
|
-
onSecond();
|
24
22
|
|
25
23
|
resolve();
|
26
24
|
|
27
25
|
}, 4000);
|
28
26
|
|
29
27
|
});
|
28
|
+
|
29
|
+
onSecond();
|
30
30
|
|
31
31
|
console.log("end");
|
32
32
|
|