このコードは、特定の月のすべての日を記録する必要があります。
var date = new Date(2012,2,1);
var thisMonth = date.getMonth();
while(date.getMonth()==thisMonth) { // 31 steps ???
console.log(date.getMonth(),date.getDate());
date.setDate(date.getDate()+1);
}
2月以外は毎月うまくいきます。キャッチはどこにありますか?