Submitted 9 months ago
Responsive age calculator page using HTML, CSS and Javascript.
@waru-guru
Design comparison
SolutionDesign
Solution retrospective
I am getting a typeError on the if statement for validating the day, can anyone help me fix the issue?
Community feedback
- @alirs07Posted 9 months ago
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");
0
Please log in to post a comment
Log in with GitHubJoin 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