array of months javascript

Calls a function for each element in the calling array. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. Returns the first (least) index at which a given element can be found in the calling array. JavaScript arrays begin at 0, so the first element will always be inside [0]. For a more natural approach, try this little snippet. Here is very simple approach to get month name :