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 with HTML, Css, and Javascript

Danar 200

@DanarGdg

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 appreciate the feedback

Community feedback

Account Deleted

Hi,

Nice one on completing the challenge it works pretty ok, but there's things I think you should change, or implement;

  • The calculator works but there's a lot of holes in the functionality. Firstly, the functions that handle the tip amount/person and the total/person should not be called if any of the fields are empty. Right now when I am inserting the bill, the outputs are already saying infinity so doing this will prevent that.
  • You should also set the minimum number of all the inputs to 1, because I am able to go below zero and select a negative number.

Once you have those things sorted you should be fine.

Keep coding👍.

Marked as helpful

1

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