Last active
August 29, 2015 14:04
-
-
Save lexdene/1a503201c3eaaa90cb66 to your computer and use it in GitHub Desktop.
calc 823
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i,j; | |
var result = ''; | |
for(i=2000; i<2100; ++i){ | |
[1, 3, 5, 7, 8, 10, 12].forEach(function(j){ | |
d = new Date(i, j - 1); | |
if(d.getDay() == 5){ | |
result += d.getFullYear() + '年' + (d.getMonth() + 1) + '月 '; | |
} | |
}); | |
} | |
console.log(result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment