Number of days in any month

Viewed 34563

How can I write a JavaScript function that accepts a number from 1 - 12 representing the months of the year, and then returns the number of days in that month?

11 Answers
Related