Question · JavaScript and TypeScript course · Module 5: Advanced JavaScript
Creating Date Objects
What does Date.now() return in JavaScript?
Answer options
- An array [year, month, day]
- A string with the date in ISO format
- A Date object with the current date
- The number of milliseconds since January 1, 1970 (Unix timestamp)
You can check the correct answer by solving this task in the CodeWorlds game.