質問編集履歴
1
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,18 +1,1 @@
|
|
1
|
-
|
2
|
-
setTimeout(function() {
|
3
|
-
var setTimeoutText = 'ここはsetTimeoutの中の関数です';
|
4
|
-
resolveScope();
|
5
|
-
}, 3000);
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
function resolveScope() {
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
console.log();
|
14
|
-
}
|
15
|
-
```
|
16
|
-
演習です。
|
17
|
-
上記の関数resolveScope内のconsole.log();で、setTimeoutの中の関数で定義された変数setTimeoutTextを「Console」に表示したいです。
|
18
|
-
ただし、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.
|