質問編集履歴

1

変数の変更

2021/03/05 09:01

投稿

Azulily
Azulily

スコア31

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  ```javascript
12
12
 
13
- var yoffset = window.pageYOffset;
13
+ let yoffset = window.pageYOffset;
14
14
 
15
15
 
16
16
 
@@ -32,7 +32,7 @@
32
32
 
33
33
  ```javascript
34
34
 
35
- var yoffset = document.getElementById('header');
35
+ let yoffset = document.getElementById('header');
36
36
 
37
37
  window.addEventListener('scroll', myfunction);
38
38