+ 1
Shouldn't the code for the June 11th, 1988 date have a 6 instead of a 5?
4 Respostas
+ 1
JS defines months starting by 0, i.e. may is 4, june is 5 and january is 0.
0
Because the month count starts at 0
0
Yes, it should be May if the moth is referred as 5 in other languages but JavaScript counts months from 0 (January) as said in the note below.
0
The month count in JavaScript starts from 0 😄