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.
The first day of any month is always 1.
Challenge: Verify that new Date(2024, 0, 1).getDate() returns 1.