Role: Returns the month of.
Syntax: dateObject.getMonth ()
Returns: The return value is an integer between 0 (January) to 11 (December) . dateObject the month field, local time.
Note: This method is always used in conjunction with a Date object.
var d=new Date()
console.log(d.getMonth())