回答編集履歴

1

formatter

2021/05/06 16:01

投稿

FromMZ1500
FromMZ1500

スコア496

test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  const options = { weekday: 'short', month: 'numeric', day: 'numeric' };
14
14
 
15
- const formater = new Intl.DateTimeFormat('ja-JP-u-ca-japanese', options);
15
+ const formatter = new Intl.DateTimeFormat('ja-JP-u-ca-japanese', options);
16
16
 
17
17
 
18
18
 
@@ -28,7 +28,7 @@
28
28
 
29
29
  if (chkday.getMonth() > nextMonth) break;
30
30
 
31
- document.write(formater.format(chkday) + "<br />");
31
+ document.write(formatter.format(chkday) + "<br />");
32
32
 
33
33
  }
34
34