Which method is used to get the year of a date as a four-digit number?
getYear()
fullYear()
getFullYear()
getfullyear()
Correct Answer : C
Which JavaScript object works with the dates?
Which JavaScript statement(s) is correct to create Date object(s) with new Date() constructor?
What will be the output of the following JavaScript code?
const currDate = new Date(); document.write(currDate);