Design comparison
Solution retrospective
First project using tailwind. Emphasis on the javascript as that is what i'm currently focusing on.
Getting the app to work was not the hard part, the hard part was figuring out how to get the current date (probably would have been an API but I haven't learned how to utilize APIs yet) and then calculating the math utilizing this information. Even using a static date, it was hard to calculate the math because every month has a different amount of days and I wasn't sure how to calculate the exact date with the inconsistencies in this information. The calculator works, the math is just slightly wrong.
Advice is always welcomed. I tried to make sure I didn't repeat any code. I will be jumping into react projects after this JS project.
Community feedback
- @Adel-HarratPosted over 1 year ago
Hello, I used the moment library to calculate the date accurately, see my solution
0
Please log in to post a comment
Log in with GitHubJoin 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