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

Tip calculator with vanilla JS

Marcos 95

@marcosfsousa

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


This one had me scratching my head for an answer for a good while.

While it is working and it is responsive, to the best of my knowledge, there is a big UX problem due to the action trigger for the math calculations happening on click on the tip buttons and not when the user inserts the input value for the number of people, which I think it was the idea.

As always, I'm welcome to suggestions and helpful hints on how to improve my solution.

Community feedback

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