Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Age Calculator App (HTML + CSS + Javascript)

Roselin Y•330
@Vanillatte68
A solution to the Age calculator app challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

Using javascript event listener for calculating the age and validate user input. I'm also quite happy with the mobile and desktop design for this challenge.

What challenges did you encounter, and how did you overcome them?

I think it took me more time to make the input validation because I need to think several condition possible and different error message for the input. Although I put the condition when the value is empty the message displayed should be "This field is required", it just keep displaying message for invalid value instead. I just leave it be but I still think it could be nice to have different error message for certain condition.

What specific areas of your project would you like help with?
  • Feedback on what should I do to display error message for empty input value as mention above.
  • I'm not sure how to put condition when the month value is February, April, June, etc... and how do you include leap year in the condition for the date input validation.

Feel free to check my code and live site any feedback would help a lot.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Roselin Y's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License