DEV Community

Discussion on: Making a Calendar in Vanilla Javascript

Collapse
 
preddys75 profile image
Scott Preddy

initially confused that you had typo putting number 6 in date call, but remembered index starts at 0 so its good.

For example, July(index 6 of a year) has 31 days in a month. If I entered new Date(2019, 6, 32) into my console, I would expect the console to return August 1, 2019