回答編集履歴

1

判定式のバグを修正

2018/10/30 06:01

投稿

tkturbo
tkturbo

スコア5572

test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  let d = dateObj.getDate();
14
14
 
15
- return (dateObj.getDay()==0 && d/7 >= 3 && d/7 < 4);
15
+ return (dateObj.getDay()==0 && d/7 > 2 && d/7 <= 3);
16
16
 
17
17
  };
18
18