質問編集履歴
2
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -57,7 +57,7 @@
|
|
57
57
|
const output = [];
|
58
58
|
|
59
59
|
// for each question...
|
60
|
-
myQuestions.(
|
60
|
+
myQuestions.forEach(
|
61
61
|
(currentQuestion, questionNumber) => {
|
62
62
|
|
63
63
|
// we'll want to store the list of answer choices
|
@@ -199,7 +199,7 @@
|
|
199
199
|
**問題が発生した箇所**
|
200
200
|
```Javascript
|
201
201
|
// for each question...
|
202
|
-
myQuestions.(
|
202
|
+
myQuestions.forEach(
|
203
203
|
(currentQuestion, questionNumber) => {
|
204
204
|
|
205
205
|
// we'll want to store the list of answer choices
|
1
文章の修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
JavascriptとHTMLでクイズを作りましたが表示されま
|
1
|
+
JavascriptとHTMLでクイズを作りましたが表示されず困っています。
|
body
CHANGED
@@ -8,8 +8,7 @@
|
|
8
8
|
ReferenceError: can't access lexical declaration `myQuestions' before initialization
|
9
9
|
```
|
10
10
|
と表示されてしまいます。何回も見直しましたが特に間違いだと思うところはありませんでした。
|
11
|
-
|
12
|
-
これがコードになります。
|
11
|
+
これが全てのコードになります。
|
13
12
|
```Javascript
|
14
13
|
const quizContainer = document.getElementById('quiz');
|
15
14
|
const resultsContainer = document.getElementById('results');
|
@@ -197,6 +196,16 @@
|
|
197
196
|
// put the rest of your code here
|
198
197
|
})();
|
199
198
|
```
|
199
|
+
**問題が発生した箇所**
|
200
|
+
```Javascript
|
201
|
+
// for each question...
|
202
|
+
myQuestions.(
|
203
|
+
(currentQuestion, questionNumber) => {
|
200
204
|
|
205
|
+
// we'll want to store the list of answer choices
|
206
|
+
const answers = [];
|
207
|
+
|
208
|
+
```
|
209
|
+
|
201
210
|
**自分なりの対策**
|
202
211
|
何度も見直しました。
|