Run ❯
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript setFullYear()
The setFullYear() method sets the year of a date object: