Design comparison
SolutionDesign
Solution retrospective
The JS part of the challenge was a bit complicated for me, mainly because the calculator doesn't have any calculate/submit button (which is strange). As a result, I managed to handle the inputs with focusout event, so that the tip amount is calculated each time all 3 inputs are filled in and focused out. Not sure whether it was an optimal solution, so if you have any suggestions on how to do it better, please tell me 🙂 Thanks in advance)
Community feedback
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