Created
March 30, 2017 02:01
-
-
Save nkabrown/44d45ceee28a2e29d3cb51ba2efaaa12 to your computer and use it in GitHub Desktop.
exercises with javascript date objects
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
// create a date object with today's date | |
// create a date object with the date of 1 January 2017 | |
// find the number of days between today and 1 Jan 2017 | |
// create an array of date objects from our start date to our end date | |
// randomly set a boolean workout property on each date object in our array | |
// did you workout on the first day of the year? | |
// did you workout seven days ago? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment