getDatebeginnerconst d = new Date(2024, 0, 15)
d.getDate() // β 15Use getDate() to retrieve the day of the month (1β31) in local time from a Date object.
When you pass day 1 explicitly, getDate() returns 1.
Challenge: Verify that new Date(2024, 5, 1).getDate() returns 1 for June 1.