Why is the timestamp of parameters passed in new Date () different from those separated by commas?

clipboard.png
Why are the parameters of new Date () passed in a string and separated by commas, resulting in a different timestamp?

May.08,2021

everything is in the document
MDN link

clipboard.png

clipboard.png
1

Note: Date1370 new Date(2013, 13, 1)new Date(2014, 1, 1)2014-02-010new Date(2013, 2, 1, 0, 70)new Date(2013, 2, 1, 1, 10)2013-03-01T01:10:00

89


clipboard.png

js time disgusting place, directly pass in the number, calculate to you + 1, the string represents normal, when you get the month, it is-1

Menu