回答編集履歴
1
async 忘れ
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
const getQuizData = async () => {
|
8
8
|
|
9
|
-
return new Promise((resolve, _reject) => {
|
9
|
+
return new Promise(async (resolve, _reject) => {
|
10
10
|
|
11
11
|
const respons = await fetch('https://opentdb.com/api.php?amount=10')
|
12
12
|
|