Which method is used to get the year of a date as a four-digit number?
Options:
Explanation:
The
getFullYear() method is used to get the year of a date as a four-digit number.
Tags:
JavaScript
Answer:
Which method is used to get the year of a date as a four-digit number getFullYear().