kata
.studio
Login
JS Reference
Kata
Cards
New Card
Lists
Open main menu
Library
Kata description
Search
medium
Set full year
Create a function that takes a date and a year as arguments and returns a new date with the year set to the specified value using Date.prototype.setFullYear().