.setFullYear()

Term side of the Card
Topic: Date
Unit title: .setFullYear()
Categories: Method
Explanation side of the Card

Explanation: The method that sets the full year (including century) for a specified date according to local time. It allows updating the year, optionally specifying the month and day.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 1
Availability: