Design comparison
Solution retrospective
Just create the vanilla JS function for calculator myself. There is some code that can be optimize on that function.
What challenges did you encounter, and how did you overcome them?The challenge is more on calculation logic function since it used buttons and custom input field to do the tip calculation. Just got the foreach function on these vanilla JS
What specific areas of your project would you like help with?Just need some feedback on my javascript code if there need some improvement that can be make in future.
Community feedback
- @rejin-kumarPosted 4 months ago
Using radio buttons for the tip selection instead of buttons (with an optional field for custom tips, which would be used only if there is a non-zero value in it) would have simplified the code a lot. Hope it helps! :)
1@madegilangadityaPosted 4 months agoHI @rejin-kumar thanks for your feedback. Will try on next challenge
0
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