これは、午前 5 時近くになることと関係があると確信しています...そして、明らかな何かが欠けていると思います。
これが私のコードです:
var dayInMonth = 2,
lastDayNum = 30;
console.log(dayInMonth, (dayInMonth > lastDayNum)); // displays "2 false"
for(dayInMonth; dayInMonth > lastDayNum; dayInMonth++){
console.log("here!") // not displaying anything
}
forループがconsole.log()
ステートメントを実行するのを止めているのは何ですか?