質問編集履歴

1

コードの間違い

2020/05/18 05:36

投稿

hiroki88
hiroki88

スコア66

test CHANGED
File without changes
test CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  target.addEventListener("click", ()=>{
22
22
 
23
- sampleFunction();
23
+ sampleFunction(resultList, resultData);
24
24
 
25
25
  //sampleFunctionの中である結果をresultListとresultDataに代入する処理を行う
26
26
 
@@ -28,13 +28,13 @@
28
28
 
29
29
 
30
30
 
31
- sampleFunction(){
31
+ sampleFunction(list, data){
32
32
 
33
33
  //例
34
34
 
35
- resultList = [1,2,3];
35
+ list = [1,2,3];
36
36
 
37
- resultData = [4,5,6];
37
+ data = [4,5,6];
38
38
 
39
39
  }
40
40