質問編集履歴
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,35 +1 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
setTimeout(function() {
|
4
|
-
|
5
|
-
var setTimeoutText = 'ここはsetTimeoutの中の関数です';
|
6
|
-
|
7
|
-
resolveScope();
|
8
|
-
|
9
|
-
}, 3000);
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
function resolveScope() {
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
console.log();
|
26
|
-
|
27
|
-
}
|
28
|
-
|
29
|
-
```
|
30
|
-
|
31
|
-
演習です。
|
32
|
-
|
33
|
-
上記の関数resolveScope内のconsole.log();で、setTimeoutの中の関数で定義された変数setTimeoutTextを「Console」に表示したいです。
|
34
|
-
|
35
|
-
ただし、setTimeoutTextはグローバル変数にせずです。
|
1
|
+
President Donald J. Trump of the United States of America and Chairman Kim Jong Un of the State Affairs Commission of the Democratic People's Republic of Korea (DPRK) held a first, historic summit in Singapore on June 12, 2018.
|