Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Tailwind CSS with Vanilla JS Tip Calculator

@madegilangaditya

Desktop design screenshot for the Tip calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

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-kumar

Posted

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

@madegilangaditya

Posted

HI @rejin-kumar thanks for your feedback. Will try on next challenge

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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