回答編集履歴

2

変数名を変更

2018/06/04 23:44

投稿

root_jp
root_jp

スコア4666

test CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  const inpCol = document.getElementsByTagName("input");
4
4
 
5
- const testCols = Array.from(inpCol).filter(input => input.name === "test");
5
+ const eleCol = Array.from(inpCol).filter(input => input.name === "test");
6
6
 
7
7
  ```

1

変数名を変更

2018/06/04 23:44

投稿

root_jp
root_jp

スコア4666

test CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  const inpCol = document.getElementsByTagName("input");
4
4
 
5
- const testCols = Array.from(inpCol).filter(v => v.name === "test");
5
+ const testCols = Array.from(inpCol).filter(input => input.name === "test");
6
6
 
7
7
  ```