$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · medium · #98
What is the output?
console.log(new Date(2026, 0, 15).getMonth());
0
1
15
12
Date months are zero-based, so January is 0.
Play Problem Solving ▸
◂ #97
all Problem Solving — predict the output questions
#99 ▸