回答編集履歴

1

質問に対する追記

2019/08/13 11:58

投稿

thyda.eiqau
thyda.eiqau

スコア2982

test CHANGED
@@ -1 +1,33 @@
1
1
  [アロー関数](https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Functions/Arrow_functions) です
2
+
3
+
4
+
5
+ ----
6
+
7
+ 質問に対する追記 Aug 13, 2019 20:58
8
+
9
+ > 質問本文に記載させて頂いたコードの場合ですと「response」自体が引数となっている、無名関数という認識で正しいでしょうか?
10
+
11
+
12
+
13
+ はい、次のように記載した場合と同じです。
14
+
15
+ ```js
16
+
17
+ asyncProcess('トクジロウ').then(
18
+
19
+ function(response) {
20
+
21
+ console.log(response);
22
+
23
+ },
24
+
25
+ function(error) {
26
+
27
+ console.log(`エラー:${error}`);
28
+
29
+ }
30
+
31
+ );
32
+
33
+ ```