Responsive age calculator page using HTML, CSS and Javascript.

Solution retrospective
I am getting a typeError on the if statement for validating the day, can anyone help me fix the issue?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @alirs07
Hi there. Good job. you declared the enter_day id in your index.js file as date, but the day input id is day. That's the typeEfrror reason.
HTML:
<input type="number" placeholder="DD" id="day">
JS:const enter_day = document.getElementById("date");
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord