Alice Githui
.toFixed(2)
method. I used an if statement to check if the input value for the total amount is a number. If the input value is not a number, the function will return a value of 0. If it is a number, I made use of .innerHTML
to display the total amount due per person and the tip amount due per person.