Two Date objects are never identical, so compare timestamps.
Acceptance criteria
- 1.#out should show same moment.
Two Date objects are never identical, so compare timestamps.
const a = new Date(Date.UTC(2026, 0, 1)); const c = new Date(Date.UTC(2026, 0, 1)); document.querySelector('#out').textContent = a === c ? "same moment" : "different";
Output ready when you are
Press Run to render your code, or Submit to validate your solution.