Date Object Quiz
Multiple Choice Easy
Question
What does `new Date(0)` represent?
Hint
Date uses milliseconds since the Unix epoch.
Explanation
new Date(0) creates a Date representing the Unix epoch — January 1, 1970, 00:00:00 UTC. The number argument is milliseconds since the epoch. Date.now() returns the current time as milliseconds since the epoch. Dates are internally stored as millisecond timestamps.
Related Resources
Related Lessons
- JavaScript Data Types
Learn about the Date object.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.