kata.studio

LoginJS ReferenceKataCardsNew CardLists

Library

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().