Design comparison
Solution retrospective
This challenge was very complicated since I still haven't mastered JS
Community feedback
- @elaineleungPosted over 2 years ago
Hi Bryan, good job on attempting to build this, and I think you did a good job on the whole. The only things that didn't seem to work for me were the custom tip input and the error message. I wanted to see what was going on in your JS but I don't really understand Spanish 😅. I see that you're using
blur
as an event listener for the custom button, but I'm not too sure why. My suggestion instead is to use aninput
event listener and in the function, see whether you can save that custom as a variable somehow and also run the calculate function with the new value.Here's my solution and you can see whether that helps you: https://www.frontendmentor.io/solutions/responsive-tip-calculator-app-with-plain-js-Nj1Gtzub_V
Good luck!
1
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