Project 15: Contact Us Form
JS Wizard
Builds on these lessons
Step 1 of 3
Project
Working with Date
Create a submittedAt with new Date() and read its year with .getFullYear(). The Date object is JavaScript's built-in way to represent a specific moment in time, with methods to pull out any part of it.
🎯 Your Task
Please add the exact code shown in the light gray box below to your editor.Do not delete your previous code, just insert these new lines in the correct place!
const submittedAt = new Date();
console.log(submittedAt.getFullYear());