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

All comments

  • Jeferson 130

    @jefersonBorges

    Submitted

    Excited to share this project —an Age Calculator application using HTML, CSS, and JavaScript. This web application allows users to input their birthdate and calculates their age in years, months, and days. The application features a user-friendly interface, responsive design, and error handling for input validation. I also implemented object-oriented programming and event handling concepts to enhance the functionality. It was a challenging but rewarding project that helped me strengthen my skills in web development and problem-solving.

    @joshua-gibson

    Posted

    Hey, I just finished this one, so I thought I'd have a look at yours. Nice job! Your javascript is very clean. I like that you've made an effort to account for leap years too. And the animation is really cool. I have spotted an issue though. putting in today's date in 2020 should return 2 years, 0 months, 0 days, but returns 2y/11m/29d. moving back by days gets 2y/11m/30d, and then 3y/0m/1d. Meaning, it seems the calculation can never produce Xy/0m/0d. Might be worth another look. I also noticed that your input fields jump out of alignment when an error is present, which looks a bit odd. Apart from that, it looks good. you seem to have put a lot of thought into it and it shows!

    Marked as helpful

    0
  • merii 80

    @merii-crl

    Submitted

    I had a tough time in calculating the age part, but resourcefulness really helps! If you have any feedback, I'd appreciate it. Thanks!

    @joshua-gibson

    Posted

    Hi, looks great! I did manage to break your calculation putting in Feb 30th, 2022, got -8 days back. I was able to calculate a September with 31 days as well, so it seems to be a missed check for a valid date. Also noticed loads of commented out code in your script file, probably worth a tidy out. Apart from that seems pretty robust! Good effort!

    Marked as helpful

    0
  • @joshua-gibson

    Posted

    Hi there, styling looks great! I think there is work to do on your calculation though. putting in today's date one year ago returns 1 year, 0 months, and 4 days. Entering 2 years ago yesterday returns 2 years, 0 months, -1 day. So a bit of work to do there. I'd also have a look in the design section for the mobile-design.jpg file, I don't think that's looking as intended. Apart from that its really nice!

    Marked as helpful

    0