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
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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