Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive age calculator page using HTML, CSS and Javascript.

waru-guru 60

@waru-guru

Desktop design screenshot for the Age calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

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

alirs07 120

@alirs07

Posted

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

waru-guru 60

@waru-guru

Posted

@alirs07 Thank you, I've corrected that!

0

Please log in to post a comment

Log in with GitHub
Discord logo

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