Design comparison
Solution retrospective
My problem with js app is that you have to insert numbers in input field then select tip percentage. Otherwise there won't be any result. After reseting all data when you select any tip percentage there would be NaN error. Maybe someone have solution for this? Would be very grateful!
Community feedback
- @JfuseCodesPosted about 3 years ago
I came across the same issues when i was working on this project. Basically the solution to having the app update is have event listeners for each input regarding any situation.
Situations like a bill with no tip and a bill with a tip. So for the input of the bill, you create a function that outputs the results if no tip has been selected. Then you do the same if a tip has been selected.
Eventually you have to add the event listeners for each of the inputs so that on any input the results are rendered without having to re input anything else.
I hope this helps point you in the right direction. If you need any clarifications don't hesitate to ask! 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