Created
December 12, 2014 09:17
-
-
Save tmn/132777a4b3a97a2d14cc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| for (var d = new Date(1337, 0, 1), c = 0, date = new Date(Date.now()); d <= date; d.setMonth(d.getMonth() + 1), d.setDate(13)) { | |
| if (d.getDay() === 5) | |
| ++c | |
| } | |
| console.log(c); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment