回答編集履歴

2

修正

2020/11/20 19:17

投稿

tomtomtomtom
tomtomtomtom

スコア563

test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  window.onload = function() {
14
14
 
15
- const flashMsg = document.querySelector('.flash-message')
15
+ const flashMsg = document.querySelector('.flash-message');
16
16
 
17
17
  };
18
18
 

1

見やすくしました

2020/11/20 19:17

投稿

tomtomtomtom
tomtomtomtom

スコア563

test CHANGED
@@ -8,12 +8,16 @@
8
8
 
9
9
 
10
10
 
11
+ ```
12
+
11
13
  window.onload = function() {
12
14
 
13
15
  const flashMsg = document.querySelector('.flash-message')
14
16
 
15
17
  };
16
18
 
19
+ ```
20
+
17
21
  ですかね。
18
22
 
19
23
  前者は動作確認していないので、後者がおすすめです。