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.
setFullYear() returns the new timestamp (ms since epoch) as a number.
Challenge: Verify that typeof d.setFullYear(2025) returns 'number'.