@elaineleung
Posted
Hi Aurel, well done in putting this tip calculator together! I think on the most part, things are fairly functional here, so great work! The only thing that needs to be fixed are the buttons; when I click on them to change the tip, the numbers in the total screen stay the same and the new tip doesn't get calculated. I think you can try add the getResult
function in your click handler and see if that helps. The other thing is, I'm using Firefox, and it doesn't automatically delete the values of the input when I refresh, and so I needed to manually delete the inputs. I had the same thing happen in my app, and I used an onload event listener to call the reset function.
Hope this helps you out!
Marked as helpful