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

@michyking

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

Eren 720

@erenymo

Posted

Hi There👋

Congratulations to finish the project, it looks pretty good!🎉

BUT❗

Like most coders that I reviewed their solutions, you missed an important detail while doing this project. The leap year algorithm has critical role while calculating the age correctly.Basically, we care the leap year whether February will be 28 or 29 days in this project. Please check this website to have an idea how to calculate the leap year and please integrate it into your code.

Except this little but critical bug, you did a great job! Have fun and keep coding !🔥🚀

Marked as helpful

0

@michyking

Posted

Thank you very much for your feedback. I really appreciate it and I will try to integrate your suggestion into my code @erenymo

1

@michyking

Posted

Hi @erenymo

I have implemented the suggestion you gave, can you check it out here?

0

@michyking

Posted

Hi @erenymo

I have implemented the suggestion you gave, can you check it out here?

0
Eren 720

@erenymo

Posted

Hi again, @michyking

I have checked your latest update, yes it is work partially but still there is an issue. When I input day : 30 or 31, month : 2 , it is still trying to calculate. I shouldn't be able to input higher value than 29 at the February.

A simple logic :

  • If it is leap year, than value of the day input of February can be maximum 29 days, otherwise can be maximum 28 days.

I'm waiting for your latest implementation :).

0

@michyking

Posted

Hi @erenymo

It has been awhile. Thank you for this suggestion and I have done the needful.

1

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