Run ❯
Get your
own
website
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript Dates
JavaScript getMonth()
Return the month as a number.
You can use an array of names to return the month as a name: