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 app

BreinerJT 530

@BreinerJT

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


I had a big problem with this challenge, when you input the tip percentage last the tip and total output is not correct. I don't think that the Js code is the optimal so I will really appreciate any feedbacks

Community feedback

P
Justin Green 2,750

@jgreen721

Posted

Right now your tip buttons are only updating the tip_percentage, so if the user gives total/people-total first then the calculations been made/DOM's been updated and the user will have to go back and fuss with one of them for the (by now) selected tip to be factored in. So, just add that updating page/total logic into your tip-buttons function(assuming the user has given values for total/people_total). Hopefully that makes sense. lol

Good job though. Looks good and works good aside from that.

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