I was coding a function to remove a day from a date value in javascript and i was kind of surprise that javascript's getMonth() starts from 0 for January to 11 for December. Why javascript's  getMonth() starts with 0?
why getMonth() starts with 0
javascript
at a guess, to help with indexing into arrays.Imagine you have your month display strings stored in an array and want to get the correct string using getMonth()of course, why arrays start at zero is another question