getMonthbeginnerconst d = new Date(2024, 5, 15) // June
d.getMonth() // β 5
// 0=Jan, 11=DecUse getMonth() to retrieve the zero-indexed month (0 = January through 11 = December) of a Date in local time.
June has index 5 in the 0-indexed month system.
Challenge: Verify that new Date(2024, 5, 15).getMonth() returns 5.