AI

Dates are built-in objects that store time data. Let's work with the Date object.

Your Task:

  • Create a new Date object representing right now and store it in now
  • Create a specific date for "2025-01-01" and store it in futureDate
  • Get the full year from futureDate using .getFullYear() and store it in futureYear
TypeScript Solution
Loading...

Submit your code to see test results