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

age-calculator-app-main Public

@James-K-DNg-1901

Desktop design screenshot for the Age calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Community feedback

MrByford 80

@MrByford

Posted

  1. In reviewing the age calculator app, I observed that although the month value is correct, it displays an error message indicating that the field is required. However, the app still provides an output. It may be beneficial to revisit the logic behind this condition to prevent the error message from appearing when a correct entry is made.

  2. Upon intentionally entering an invalid value, like 56 for days, the output appears as "NaN Days." Enhancing the user experience could involve addressing this issue to provide a more meaningful response or guiding the user towards a valid input.

  3. Notably, when an invalid entry is submitted, there is no accompanying error message. Instead, the previous message disappears, potentially leading to the assumption that the entry is valid. For instance, entering the 56th day of a month contradicts the brief, which specifies not exceeding 31 days. Adding a clear error message would help users understand and correct their input.

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