+ 3
Why is my tip calculator not working?
I am trying to make a tip calculator for practice. The user should enter in their bill amount and the tip percentage they want to tip and it should tell you the amount to tip. I am not sure what i am doing wrong with my javascript. Could anyone help me understand? https://code.sololearn.com/WHP5eqGTrolT/?ref=app
2 Answers
+ 4
I dont know to much of js. But i believe in line 10 you have
x = totalTip.toFixed(2)
Should be
x = x.toFixed(2)
+ 2
That helped! Thank you! Its functioning now and I can keep working