JS new Date() jump to next year [duplicate]

Solution 1:

This is JavaScript.

January is 0.

December is 11.

See Date.prototype.getMonth().