.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.Posted Mar 12, 2024
One of the best platforms to practice your Frontend skills is Frontend Mentor. It is a website/platform that provides various front-end development challenges,…
0
0