回答編集履歴

2

typo

2023/01/17 01:43

投稿

int32_t
int32_t

スコア20850

test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  `getData()` を以下のように変更して、
4
4
  ```js
5
- async funtcion getData() {
5
+ async function getData() {
6
6
  const url = "https://umayadia-apisample.azurewebsites.net/api/persons/Shakespeare";
7
7
  const res = await fetch(url);
8
8
  return await res.json();

1

.

2023/01/17 01:37

投稿

int32_t
int32_t

スコア20850

test CHANGED
@@ -8,5 +8,5 @@
8
8
  return await res.json();
9
9
  };
10
10
  ```
11
- 呼びだしでは `(await getData()).data` のようにします。
11
+ 呼びだしでは `(await getData()).data` のようにします。呼び出している関数も `async` を付ける必要があります。
12
12