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 thetotal/person
should not be called if any of the fields are empty. Right now when I am inserting the bill, the outputs are already sayinginfinity
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