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 with Vanilla JS and Tailwind CSS

@freaky4wrld

Desktop design screenshot for the Age calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hey there all I hope you doing well, here's question

in my validateDate() function, it has some browser compatibility issue, like safari and firefox are providing me what I need, but chrome here is making auto adjustment, which I don't want

Well a lot to learn in js got pretty much messed with my code....... do share your views on the solution

Thanks for all your appreciation and valuable advice :)

Community feedback

symo-058 220

@symo-058

Posted

You can use the code below to animate your output. function animateCount(outputDays,ageDays) { let currentValue = 0; const interval = setInterval(() =>{ if (currentValue < ageDays) { currentValue++; outputDays.textContent = currentValue; } else { clearInterval(interval); } }, 25);

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