Menu
×
×
Correct!
Exercise:Use the correct Date method to extract the year (four digits) out of a date object.
const d = new Date();
year = d.getFullYear();
Not CorrectClick here to try again. Correct!Next ❯const d = new Date(); year =; |