What will be the output of the following code?
const date = new Date();
date.setFullYear(2024);
console.log(date.getFullYear());
What will be the output of the following code?
const date = new Date();
date.setFullYear(2024);
console.log(date.getFullYear());