+ 2
Code playground (JavaScript)
‘getMonth();’ is getting January ( 1 ) but it’s February ( 2 )? https://code.sololearn.com/W3cVov3ygu6r/?ref=app
3 Respostas
+ 4
.getMonth() is zero based, i.e. values range from 0 to 11, not 1 to 12.
https://www.w3schools.blog/getmonth-javascript-js
+ 3
Thank you
0
Оо