Multiple choice

Which of the following is a valid date function?

  1. getHour()

  2. getMinute()

  3. getSecond()

  4. getFullYear()

  5. getYears()

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This option is correct as it returns the year of the Date object(four digits).