Design comparison
SolutionDesign
Solution retrospective
I'd like to get some feedback on the JavaScript. I treated the calculator as a form, but I realized that there wasn't a "submit" button to click, so I had to make the JavaScript trigger the calculations whenever there was a value change or whenever the 'Tip' buttons were clicked. I also had to ensure only one tip button could be on at once. This was my first time using JavaScript for anything other than opening and closing the hamburger menu, so I'm aware of how inefficient my JavaScript probably is.
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