回答編集履歴

1

console.log(result.parentNode)

2019/07/16 12:33

投稿

think49
think49

スコア18166

test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- 変数 `result` をコンソール出力すると、
5
+ 変数 `result` の親ノードをコンソール出力すると、
6
6
 
7
7
 
8
8
 
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- console.log(result);
17
+ console.log(result.parentNode);
18
18
 
19
19
  result.textContent = pwd;
20
20
 
@@ -30,7 +30,7 @@
30
30
 
31
31
  ```HTML
32
32
 
33
- <input type="text" id="result">
33
+ <p><input type="text" id="result">YHtizySY</input></p>
34
34
 
35
35
  ```
36
36