Joining the parts gets the order and padding wrong.
Acceptance criteria
- 1.#out should show 15/01/2026.
Joining the parts gets the order and padding wrong.
const date = new Date(Date.UTC(2026, 0, 15)); document.querySelector('#out').textContent = date.getUTCDate() + "/" + date.getUTCMonth() + "/" + date.getUTCFullYear();
Output ready when you are
Press Run to render your code, or Submit to validate your solution.