teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

参照API URLの修正

2019/05/25 09:28

投稿

Takashi1986
Takashi1986

スコア12

title CHANGED
File without changes
body CHANGED
@@ -13,7 +13,7 @@
13
13
  ### 該当のソースコード
14
14
 
15
15
  ```ここに言語名を入力
16
- fetch('https://holidays-jp.github.io/api/v1/date.json')
16
+ fetch('https://opentdb.com/api.php?amount=10')
17
17
  .then(response => response.text())
18
18
  .then(text => {
19
19
  console.log(text); // OK