@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
@jefersonBorges
Posted
Great! I'll look into it, thanks @joshua-gibson