The Trip Date
JavaScript
10 pts
The Trip Date
Create a Date trip for 14 March 2026 (remember the month number!). Then print its parts with getters, with the month as a normal number (1–12). Expected output:
Year: 2026 Month: 3 Day: 14 Weekday: 6
Checklist
- Create
tripfor 14 March 2026. - Read every part with a getter, showing the month as 1–12.
- Print the four lines.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
