Frontend
Interviews
.dev
Problems
649. Date Month Is Zero-Indexed
Easy
•
...
Predict the output.
const
d
=
new
Date
(
2026
,
2
,
1
)
console
.
log
(
d
.
getMonth
(
)
)
What is printed in the console?
2
3
1
March
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer