回答編集履歴

1

async 忘れ

2021/01/03 13:06

投稿

A_kirisaki
A_kirisaki

スコア2853

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