setFullYearbeginnerconst d = new Date(2024, 0, 15)
d.setFullYear(2030)
d.getFullYear() // β 2030Use setFullYear() to mutate the year of a Date object in place; the month and day remain unchanged.
Mutates the Date in place, setting the year. Returns the new timestamp as a number.
Challenge: Verify that after setFullYear(2025), getFullYear() returns 2025.